How to create a polar rectangle in Matlab

조회 수: 3 (최근 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 CenterFile Exchange에서 2-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