Bresenham optimized for Matlab

An implementation of the classic algorithm with code optimized for Matlab
Updated 15 Jul 2010

View License

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 (2024). Bresenham optimized for Matlab (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R14
Compatible with any release
Platform Compatibility
Windows macOS Linux
Find more on Nonlinear Optimization in Help Center and MATLAB Answers
Tags Add Tags

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes

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