MATLAB: How to plot a disc with a given center c and radius r

circlefaq

Hi friends,
how can i draw a disc which is centered at (x0,y0), which has radius r and which is filled by color c, the circle should be colored in black.

Best Answer

You can use this answer:
But instead of using h = plot(xunit, yunit); use h=fill(xunit,yunit,'k') instead.
The colour c is black 'k' above, but you can change it with a colour spec like this.
Related Question