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

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.

 采纳的回答

jgg
jgg 2016-1-6
编辑:jgg 2016-1-6
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.

更多回答(1 个)

类别

在 帮助中心 和 File Exchange 中查找有关 2-D and 3-D Plots 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by