How can I create this figure?
2 ビュー (過去 30 日間)
古いコメントを表示
Hi everybody I want to write codes that create Concentric Circles like this figure(first.png),please help me. Actually these circles are path for a sensor node which is equipped with GPS(which is called beacon node), this sensor node traverses the network on these paths in order to help normal nodes to assume their position(coordinates). First I want to create this path and then move this beacon node on these paths(The red stars are beacon points).I have attached the figures. Thanks in advance.
0 件のコメント
採用された回答
KSSV
2017 年 6 月 29 日
r0 = 0 ; dr = 0.2 ; r1 = 1. ;
r = r0:dr:r1;
th = linspace(0,2*pi) ;
figure
hold on
axis equal
for i = 1:length(r)
x = r(i)*cos(th) ;
y = r(i)*sin(th) ;
plot(x,y) ;
end
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!