Draw circle

0

Description

function circle(x,y,r)
       %x and y are the coordinates of the center of the circle
       %r is the radius of the circle
       %0.01 is the angle step, bigger values will draw the circle faster but
       %you might notice imperfections (not very smooth)
       ang=0:0.01:2*pi; 
       xp=r*cos(ang);
       yp=r*sin(ang);
       plot(x+xp,y+yp,'y-');
end

https://matlab1.com/shop/matlab-code/local-binary-pattern-lbp-histogram-of-an-image/
https://matlab1.com/shop/matlab-code/nuclie-image-segmentation/

Reviews

There are no reviews yet.

Be the first to review “Draw circle”

Your email address will not be published. Required fields are marked *

Category: