MATLAB DDA (Digital Differential Analyzer) algorithm implementation

版本 1.0.0.0 (966 字节) 作者: Benas S
MATLAB DDA (Digital Differential Analyzer) algorithm implementation
228.0 次下载
更新时间 2017/3/28

查看许可证

This algorithm takes coordinates of two points and links them using DDA algorithm.
Won't draw anything if x1, y1 and x2, y2 line coordinates are equal (is a point).

On the internet I found some DDA algortihms, that were not working propely,
taken some ideas from Akshay Upadhyay (http://www.cprogramto.com/c-program-for-dda-algorithm/)
and Chandan Kumar (https://se.mathworks.com/matlabcentral/fileexchange/25524-line-drawing-by-dda/content/DDA_Line.m)
and implemented my own DDA algorithm version. Feel free to modify it.

I set fixed axis, so take that into consideration.
Lines x range can change from -5 to 5 and y range can change from -5 to 5 too

引用格式

Benas S (2024). MATLAB DDA (Digital Differential Analyzer) algorithm implementation (https://www.mathworks.com/matlabcentral/fileexchange/62308-matlab-dda-digital-differential-analyzer-algorithm-implementation), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2006a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Descriptive Statistics 的更多信息

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.0.0