フィルターのクリア

How to plot a circle of some radius on a polar plot ?

49 ビュー (過去 30 日間)
L K
L K 2017 年 3 月 18 日
編集済み: Ron Beck 2018 年 3 月 2 日
eg. i want a small circle with origin as center of some radius...ON the POLAR plot

採用された回答

Walter Roberson
Walter Roberson 2017 年 3 月 18 日
th = linspace(0,2*pi,50);
r = 10;
polar(th,r+zeros(size(th)))
  2 件のコメント
L K
L K 2017 年 3 月 18 日
thanx :)
Ron Beck
Ron Beck 2018 年 3 月 2 日
編集済み: Ron Beck 2018 年 3 月 2 日
I have used this script and it works (changed polar to polarPlot) but can't run it as a function. Any ideas?

サインインしてコメントする。

その他の回答 (1 件)

Gabriel Malagon Carvajal
Gabriel Malagon Carvajal 2017 年 9 月 9 日
When is not center in the origen?
  1 件のコメント
Walter Roberson
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 ExchangePolar Plots についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by