필터 지우기
필터 지우기

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 CenterFile Exchange에서 Polar Plots에 대해 자세히 알아보기

제품


릴리스

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by