Polar Plots combine codes

1 次查看(过去 30 天)
Aswas
Aswas 2018-10-2
编辑: Aswas 2018-10-5
I would like to combine the two into one polar plot please:
thetapolar = 0:pi/100:2*pi;
phi = pi/2;
fpolarr = cos(((beta*dist)/2)*cos(thetapolar) + phi); % 0deg
fpolarl = cos(((beta*dist)/2)*cos(thetapolar) - phi); % 90deg
figure
polar(thetapolar, fpolarr);
figure
polar(thetapolar, fpolarl);

采纳的回答

KSSV
KSSV 2018-10-3
Read about hold on
f = 3*10^9;
omega = 2*pi*f;
theta = pi/4; %
lambda = (3*10^8)/f;
beta = (2*pi)/lambda;
dist = lambda/2;
phi = pi/4;
thetapolar = 0:pi/100:2*pi;
phi = pi/2;
fpolarr = cos(((beta*dist)/2)*cos(thetapolar) + phi); % 0deg
fpolarl = cos(((beta*dist)/2)*cos(thetapolar) - phi); % 90deg
figure
polar(thetapolar, fpolarr);
hold on
polar(thetapolar, fpolarl);

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Polar Plots 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by