how to give coordinate with different size of circles.

2 ビュー (過去 30 日間)
davit petraasya
davit petraasya 2016 年 11 月 2 日
回答済み: LauraLee Austin 2016 年 11 月 2 日
Hi
I have 35 lakes location(x and y) and the size of lakes(in km) on my third column. How I can plot the lakes with corresponding size? I am supposed to get 35 different size of circles;smaller, bigger and very big circles.
Thanks a lot!

回答 (1 件)

LauraLee Austin
LauraLee Austin 2016 年 11 月 2 日
for idx=1:length(lake)
px = lake(idx,1)-lake(idx,3);
py = lake(idx,2)-lake(idx,3);
d = lake(idx,3)*2;
h = rectangle('Position',[px py d d],'Curvature',[1,1]);
daspect([1,1,1])
hold on
end

カテゴリ

Help Center および File ExchangeNaNs についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by