How to create a polar rectangle in Matlab

7 ビュー (過去 30 日間)
Ron Beck
Ron Beck 2018 年 2 月 28 日
コメント済み: Star Strider 2018 年 3 月 1 日
Please help me determine how to create a polar rectangle (not sure what to call it) in Matlab. The closest I have gotten is using the linspace function for the two arc and a simple line to connect the two arcs. I can't seem to cleanly connect the four line segments to make a continuous shape.

採用された回答

Star Strider
Star Strider 2018 年 2 月 28 日
I am not certain what you want.
Try this:
theta = linspace(0, 2*pi, 5);
figure(1)
polarplot(theta, ones(size(theta)))
  8 件のコメント
Ron Beck
Ron Beck 2018 年 3 月 1 日
perfect
Star Strider
Star Strider 2018 年 3 月 1 日
As always, my pleasure.

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

その他の回答 (0 件)

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by