Hello, I am trying to plot radiation intensity of antenna using the following code but i am not getting polar plots with theta axis and polar, grids please help me. help me
6 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Alexander
am 4 Apr. 2013
Beantwortet: Sandip Ghosal
am 23 Jun. 2021
i resolved the problem but i am not getting polar plots in degree co-orditanates. can any body please help me . I have attached the graph and here is my code. PI = 4.0*atan(1.0); E = 120.0*PI;
L=1/4; A = L*PI; Io = 1; r=2;
k=2*pi;
THETA=0:0.01:2*pi; U =((cos(k/2*L.*cos(THETA))-cos(k/2*L))./sin(THETA)).^2*(E./(8.0*PI^2));
polar(THETA,U);
0 Kommentare
Akzeptierte Antwort
Sandip Ghosal
am 23 Jun. 2021
Hi,
The following code works fine.
PI = 4.0*atan(1.0);
E = 120.0*PI;
L=1/4;
A = L*PI;
Io = 1;
r=2;
k=2*pi;
THETA=0:0.01:2*pi;
U =((cos(k/2*L.*cos(THETA))-cos(k/2*L))./sin(THETA)).^2*(E./(8.0*PI^2));
polar(THETA,U);
polar(THETA, RHO) makes a plot using polar coordinates of the angle THETA, in radians, versus the radius RHO. For more details of polar plot, please run:
help polar
0 Kommentare
Weitere Antworten (2)
Michael
am 4 Apr. 2013
Hmm.
PI isn't the same as pi. Use "pi". what is "E"? Is it "exp(1)"? if you fix this it gives a two-lobed polar plot
0 Kommentare
Youssef Khmou
am 4 Apr. 2013
hi, its working if you define PI and E :
L=0.25;
A=L*pi;
lo=1;r=2;
k=2*pi;
E=1;
THETA=0:0.01:2*pi;
U =((cos(k/2*L.*cos(THETA))-cos(k/2*L))./sin(THETA)).^2*(E./(8.0*pi^2));
polar(THETA,U); % DIPOLE?
0 Kommentare
Siehe auch
Kategorien
Mehr zu Polar 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!