Draw a filled circle

Plots a filled circle with given radius, center and color.

您现在正在关注此提交

FILLEDCIRCLE Filled circle drawing

filledCircle(CENTER,R,N,COLOR) draws a circle filled with COLOR that has CENTER as its center and R as its radius, by using N points on the periphery.

Usage Examples,

filledCircle([1,3],3,1000,'b');
filledCircle([2,4],2,1000,'r');

If you would like to generate the screenshot image above, you could do this:

filledCircle([1,3],3,100,'k');
hold on
filledCircle([-0.25,4.25],1,100,'r');
filledCircle([2.5,3],1,100,'g');
filledCircle([0.1,1.7],1,100,'b');
axis off

Best.

引用格式

Sadik (2026). Draw a filled circle (https://ww2.mathworks.cn/matlabcentral/fileexchange/27703-draw-a-filled-circle), MATLAB Central File Exchange. 检索时间: .

致谢

参考作品: Draw a circle.

启发作品: circlem, circle plotter

类别

Help CenterMATLAB Answers 中查找有关 Surfaces, Volumes, and Polygons 的更多信息

一般信息

MATLAB 版本兼容性

  • 兼容任何版本

平台兼容性

  • Windows
  • macOS
  • Linux
版本 已发布 发行说明 Action
1.0.0.0