Plot many filled circles

7 ビュー (過去 30 日間)
Heborvi
Heborvi 2016 年 4 月 13 日
編集済み: Azzi Abdelmalek 2016 年 4 月 13 日
Hello,
I have n points and each of them has a radius. For each point $i$, i want to plot a filled circle with raduis r(i). I used viscircles to plot the circles but i can not arrive to color the inside of circles. How i can do that?
Thank you all,
Sincerely, Heborvi

採用された回答

Azzi Abdelmalek
Azzi Abdelmalek 2016 年 4 月 13 日
編集済み: Azzi Abdelmalek 2016 年 4 月 13 日
p= [0 0;1 2;-2 1;4 -2;-3 -3];
r=[1 2 3 4 5]
alpha=-pi:0.01:pi
x=cos(alpha)
y=sin(alpha)
for ii=1:numel(r)
fill(r(ii)*(x-p(ii,1)),r(ii)*(y-p(ii,2)),'r')
hold on
end

その他の回答 (0 件)

カテゴリ

Help Center および File Exchange2-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