Bresenham's Line

Generate a line profile of a 2d image


Updated 8 Nov 2006

No License

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

For a demo purpose, try


Cite As

Narupon Chattrapiban (2023). Bresenham's Line (, MATLAB Central File Exchange. Retrieved .

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

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