how to make a polar plot line continuous between end and beginning
조회 수: 6 (최근 30일)
이전 댓글 표시
I am plotting polar plots and i would like to have the line linked between the last and first point of the plot.
I tried to find out if there was a way to achieve that, but was not able, is there any way?
댓글 수: 0
채택된 답변
Diego Candia
2020년 11월 7일
이동: Voss
2023년 8월 5일
like this:
polarplot([angle angle(1)], [radius radius(1)])
댓글 수: 1
추가 답변 (1개)
Paulo Silva
2011년 3월 31일
example
hold on
t = 0:.01:pi;
h1=polar(t,2*t,'--r')
t1=t(1);
[THETA,RHO] = pol2cart(t1,2*t1) %last
t2=t(end);
[THETA1,RHO1] = pol2cart(t2,2*t2) %first
h2=plot(THETA,RHO,'*')
h3=plot(THETA1,RHO1,'r*')
h4=line([THETA THETA1],[RHO RHO1])
legend([h1 h2 h3 h4],'polar line','first value','last value','line from first value to last value')
댓글 수: 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!