File Exchange

image thumbnail

Line drawing by DDA

version 1.0.0.0 (1.44 KB) by Chandan Kumar
Draws a line using DDA.

5 Downloads

Updated 08 Oct 2009

View License

DDA algorithm uses fast interpolation and rounding method to implement rasterization of lines, triangle and polygons. This technique has been used here to produce a straight line.

Cite As

Chandan Kumar (2021). Line drawing by DDA (https://www.mathworks.com/matlabcentral/fileexchange/25524-line-drawing-by-dda), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (4)

diksha shinde

Daniel Herczeg

Fathan Gaffurie

Thank you, this code is working perfectly, this is really helpful for my college homework. Can I ask how to make a triangle instead of line? thank you in advance

hgjg

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

Community Treasure Hunt

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

Start Hunting!