can this plotted circle be filled? it needs to have a solid color
5 次查看(过去 30 天)
显示 更早的评论
xCenter = 0; yCenter = 0; thetaValue = 0:360; radiusJoint = 1;
jointZerox = radiusJoint*cosd(thetaValue)+xCenter; jointZeroy = radiusJoint*sind(thetaValue)+yCenter;
plot(jointZerox,jointZeroy,'b')
0 个评论
回答(3 个)
Star Strider
2017-11-20
Use fill:
xCenter = 0;
yCenter = 0;
thetaValue = 0:360;
radiusJoint = 1;
jointZerox = radiusJoint*cosd(thetaValue)+xCenter;
jointZeroy = radiusJoint*sind(thetaValue)+yCenter;
fill(jointZerox,jointZeroy,'b')
axis equal
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Labels and Annotations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!