塗りつぶしの円を描くにはどうすればよいのでしょうか
显示 更早的评论
円をプロットすることはできたのですが、書いた円を塗りつぶしたものを作製するにはどうすればよいのでしょうか、
に記載のある
figure
colors = {'b','r','g','y','k'};
for k = 1:5
% Create 5 random circles to display,
X = rand(5,1);
Y = rand(5,1);
centers = [X Y];
radii = 0.1*rand(5,1);
% Clear the axes.
cla
% Fix the axis limits.
xlim([-0.1 1.1])
ylim([-0.1 1.1])
% Set the axis aspect ratio to 1:1.
axis square
% Set a title.
title(['k = ' num2str(k)])
% Display the circles.
viscircles(centers,radii,'Color',colors{k});
% Pause for 1 second.
pause(1)
で表示されるような1つのプロットに複数の円を中塗りで作製したいのですがどのようにすればよいのでしょうか。
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 グラフィックス オブジェクトのプロパティ 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!