Bresenham optimized for Matlab

An implementation of the classic algorithm with code optimized for Matlab

You are now following this Submission

This code does not use any for loops and takes advantage of Matlabs internally optimized routines to produce a fast, optimized version of Bresenham's line drawing algorithm

Cite As

Aaron Wetzler (2026). Bresenham optimized for Matlab (https://uk.mathworks.com/matlabcentral/fileexchange/28190-bresenham-optimized-for-matlab), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

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

Fixed bug which allowed non integer points.
Fixed bug which prevented vertical or horizontal lines.

1.0.0.0