How to plot a circle of some radius on a polar plot ?
35 ビュー (過去 30 日間)
古いコメントを表示
eg. i want a small circle with origin as center of some radius...ON the POLAR plot
0 件のコメント
採用された回答
Walter Roberson
2017 年 3 月 18 日
th = linspace(0,2*pi,50);
r = 10;
polar(th,r+zeros(size(th)))
2 件のコメント
その他の回答 (1 件)
Gabriel Malagon Carvajal
2017 年 9 月 9 日
When is not center in the origen?
1 件のコメント
Walter Roberson
2017 年 9 月 9 日
%need centres for demo purposes
xc = randn() * 5; yc = randn() * 5;
%the work
th = linspace(0,2*pi,50);
r = 10;
[x,y] = pol2cart(th,r);
[th1, r1] = cart2pol( x+xc, y+yc );
polar(th1, r1);
参考
カテゴリ
Help Center および File Exchange で Polar Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!