フィルターのクリア

How to plot a straight line in polar coordinate system

39 ビュー (過去 30 日間)
Jian Teng
Jian Teng 2018 年 5 月 30 日
コメント済み: Star Strider 2018 年 5 月 30 日
I would like to plot a straight line in polar that is at 90 and 270 degree, and also a line at 0 degree. The line should have a length of 54.
  2 件のコメント
John D'Errico
John D'Errico 2018 年 5 月 30 日
Is the goal that the lines pass through the origin of the polar coordinate system, extending radially out to a radius of 54?
Jian Teng
Jian Teng 2018 年 5 月 30 日
Yes, I would like to have the line pass through the origin. With a radius of 54.

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

採用された回答

Star Strider
Star Strider 2018 年 5 月 30 日
Try this:
figure(1)
polar([0 90 270; 0 90 270]*pi/180, [0 0 0; 1 1 1]*54) % Use ‘polar’
figure(2)
polarplot([0 90 270; 0 90 270]*pi/180, [0 0 0; 1 1 1]*54) % Use ‘polarplot’
I will post the plot image if you want me to.
  2 件のコメント
Jian Teng
Jian Teng 2018 年 5 月 30 日
Thank you so much!!!!!
Star Strider
Star Strider 2018 年 5 月 30 日
As always, my pleasure!

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

その他の回答 (0 件)

カテゴリ

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

製品


リリース

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by