subplot(2,2,1)
%chi=1; alpha=2; lambda=0.25
%eta=0
p1=0.00139;
%eta=10
p2=-0.01262;
theta_rad = p1*pi/180; % Degrees-To-Radians
polar(theta_rad, 'r.')
%title('Phase Angle')
title('$\chi=1.0, \quad \eta=0.0$','Interpreter','latex','FontSize',10,'FontName','Times New Roman','FontWeight','Normal')
%==========================================================
subplot(2,2,2)
theta_rad = p2*pi/180; % Degrees-To-Radians
polar(theta_rad, 'r.')
%title('Phase Angle')
title('$ \chi=1.0, \quad \eta=10.0$','Interpreter','latex','FontSize',10,'FontName','Times New Roman','FontWeight','Normal')
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
subplot(2,2,3)
%alpha=2; lambda=0.25
%eta=0
p3=0.02877;
%eta=10
p4=0.25253;
theta_rad = p3*pi/180; % Degrees-To-Radians
polar(theta_rad, 'r.')
%title('Phase Angle')
title('$\chi=10.0, \quad \eta=0.0$','Interpreter','latex','FontSize',10,'FontName','Times New Roman','FontWeight','Normal')
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
subplot(2,2,4)
theta_rad = p4*pi/180; % Degrees-To-Radians
polar(theta_rad, 'r.')
%title('Phase Angle')
title('$ \chi=10.0, \quad \eta=10.0$','Interpreter','latex','FontSize',10,'FontName','Times New Roman','FontWeight','Normal')

댓글 수: 6

Walter Roberson
Walter Roberson 2021년 8월 9일
I am not sure what the question is? Are you asking to have the polar plot labeled in radians instead of degrees?
I recalculate the above as the following? my question now what are the values that appear on the figure
subplot(2,2,1)
%chi=1; alpha=2; lambda=0.25
%eta=0
p1=0.00139;
%eta=10
p2=-0.01262;
theta_rad = p1*pi/180; % Degrees-To-Radians
polar(theta_rad, 'r.')
%title('Phase Angle')
title('$\chi=1.0, \quad \eta=0.0$','Interpreter','latex','FontSize',10,'FontName','Times New Roman','FontWeight','Normal')
%==========================================================
subplot(2,2,2)
theta_rad = p2*pi/180; % Degrees-To-Radians
polar(theta_rad, 'r.')
%title('Phase Angle')
title('$ \chi=1.0, \quad \eta=10.0$','Interpreter','latex','FontSize',10,'FontName','Times New Roman','FontWeight','Normal')
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
subplot(2,2,3)
%alpha=2; lambda=0.25
%eta=0
p3=0.02877;
%eta=10
p4=0.25253;
theta_rad = p3*pi/180; % Degrees-To-Radians
polar(theta_rad, 'r.')
%title('Phase Angle')
title('$\chi=10.0, \quad \eta=0.0$','Interpreter','latex','FontSize',10,'FontName','Times New Roman','FontWeight','Normal')
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
subplot(2,2,4)
theta_rad = p4*pi/180; % Degrees-To-Radians
polar(theta_rad, 'r.')
%title('Phase Angle')
title('$ \chi=10.0, \quad \eta=10.0$','Interpreter','latex','FontSize',10,'FontName','Times New Roman','FontWeight','Normal')
Shreen El-Sapa
Shreen El-Sapa 2021년 8월 9일
I asked about the yellow highlighted in the attached figure
Walter Roberson
Walter Roberson 2021년 8월 9일
Yes?
You are using polar() with a single parameter. The default when you pass a single parameter to polar() is to treat the input as radii, with equally-spaced angles (dividing a full circle by the number of radii passed in.)
The numbers you outlined in yellow are the radii you passed in. You converted some input value to radians according to your comments, so the radius of each polar plot represents radians for something. That all seems like something that you might want to do, so I do not see what you would like to have happen differently ?
Shreen El-Sapa
Shreen El-Sapa 2021년 8월 9일
I asked about the highlighted numbers only. you clearified.Thanks.
Walter Roberson
Walter Roberson 2021년 8월 9일
To be more correct, the yellow numbers are linear spaced from 0 to the maximum value you asked to plot.

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

답변 (1개)

Walter Roberson
Walter Roberson 2021년 8월 9일

0 개 추천

If the question is about switching the polar plot degrees to radians, then change your calls to polar() to instead be calls to polarplot(), and set the option 'ThetaAxisUnits', 'radians'

카테고리

도움말 센터File Exchange에서 Graphics Performance에 대해 자세히 알아보기

질문:

2021년 8월 8일

댓글:

2021년 8월 9일

Community Treasure Hunt

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

Start Hunting!

Translated by