필터 지우기
필터 지우기

Radar System PPI polar display

조회 수: 11 (최근 30일)
Jose Iglesias
Jose Iglesias 2022년 3월 16일
댓글: Simon Chan 2022년 3월 17일
Greetings,
Iam trying to add some concentric circles to my polar plot graph. All my code is correct and the R values on the polar plot closely resemble my rho analytical calculations. I just would like to add some more circles ranging, for example, from 0,2,4,6,8,and10,instead of what my current plot shows that just displays 0,5,10. I tried adding radii to my code with no luck. Is this posssible, or is that polar graph a Matlab default which cannot be tweaked? I attached a pic of my code and current polar plot .Thanks for your assistance in advance!!

채택된 답변

Simon Chan
Simon Chan 2022년 3월 17일
You can set the RTick value as follows:
theta = linspace(0,2*pi);
rho = 20*sin(theta);
subplot(1,2,1);
polarplot(theta,rho); % Polarplot from default settings
subplot(1,2,2)
polarplot(theta,rho);
ax = gca; % Get the axis handle of the current figure
ax.RTick = 0:2:20; % Set the required RTick values
  댓글 수: 2
Jose Iglesias
Jose Iglesias 2022년 3월 17일
Thank you so much for your help!!
Simon Chan
Simon Chan 2022년 3월 17일
Please accept the answer if you find it useful. Thank you.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Polar Plots에 대해 자세히 알아보기

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by