Polarplot with negative theta display

24 ビュー (過去 30 日間)
Shan  Chu
Shan Chu 2018 年 4 月 4 日
コメント済み: Shan Chu 2018 年 4 月 17 日
Hi everyone, I have used the polarplot function in Matlab. The theta axis by default will be from 0 to 360 degree. But I would like to display theta from -150 to 180, similar to the attached figure. Could you please help? Thanks

採用された回答

Akira Agata
Akira Agata 2018 年 4 月 11 日
You can plot it by tuning axes properties, like:
% Sample data
theta = deg2rad(-150:30:180);
rho = 10*rand(size(theta));
% Polar plot with [-180 180] degree
polarplot(theta,rho)
ax = gca;
ax.ThetaLim = [-180 180];
ax.ThetaZeroLocation = 'top';
ax.ThetaDir = 'clockwise';
  1 件のコメント
Shan  Chu
Shan Chu 2018 年 4 月 17 日
Thank you sir. It works

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

その他の回答 (0 件)

カテゴリ

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