Code uses Bresenham Algorithm to draw a circle, with a modification parameter to increase/decrease the step for calculation of point. Bresenham Algorithm is used to reduce the calculation needed for drawing a circle by making use of property of symmetry.
Chandan Kumar (2021). Bresenham Circle (https://www.mathworks.com/matlabcentral/fileexchange/25520-bresenham-circle), MATLAB Central File Exchange. Retrieved .
Hi @skoura djouder,
funplot is custom function just to plot a points that constitute Bresenham Circle. For details refer to any of the online resource for Bresenham Circle drawing algorithm. The idea implemented in "funplot" is to use the symmetry property of circle to plot 4 points in different quadrant of circle with only one set of points in a quadrant that is calculated using Bresenham algorithm.
What's the funplot function please?
Inspired: 3 integer algorithms for drawing circles
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!