plot phase angle in radian

15 Ansichten (letzte 30 Tage)
Shreen El-Sapa
Shreen El-Sapa am 8 Aug. 2021
Kommentiert: Walter Roberson am 9 Aug. 2021
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 Kommentare
Shreen El-Sapa
Shreen El-Sapa am 9 Aug. 2021
I asked about the highlighted numbers only. you clearified.Thanks.
Walter Roberson
Walter Roberson am 9 Aug. 2021
To be more correct, the yellow numbers are linear spaced from 0 to the maximum value you asked to plot.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Walter Roberson
Walter Roberson am 9 Aug. 2021
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'

Kategorien

Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by