Bresenham's Line

Generate a line profile of a 2d image
6.3K Downloads
Updated 8 Nov 2006

No License

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

For a demo purpose, try

bresenham();

Cite As

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

MATLAB Release Compatibility
Created with R13
Compatible with any release
Platform Compatibility
Windows macOS Linux
Acknowledgements

Inspired: 2D Local Grid Map, TACTICS Toolbox

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0