Bresenham's Line

Generate a line profile of a 2d image

You are now following this Submission

Generate a line profile of a 2d image
using Bresenham's algorithm.

For a demo purpose, try

bresenham();

Cite As

Narupon Chattrapiban (2026). Bresenham's Line (https://nl.mathworks.com/matlabcentral/fileexchange/12939-bresenham-s-line), MATLAB Central File Exchange. Retrieved .

Acknowledgements

Inspired: 2D Local Grid Map, TACTICS Toolbox

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0