How to plot a straight line in polar coordinate system
조회 수: 39 (최근 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
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?
채택된 답변
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.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Polar Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!