Antenna far field plot
10 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Jose Iglesias
am 27 Okt. 2021
Beantwortet: Arthi Sathyamurthi
am 30 Dez. 2021
I am trying to plot an E field radiation pattern in the far field. I tried to create the code but when I execute the plot,I do not see a pattern. I am including the code I came up with and the parameters I am using to create the E field for the plot. Perhaps someone here can tell me what is missing from my code or what I need to change. I am trying to imprrove my MATLAB skills. The E field is Sin Y/Y * Sin Z/Z which are sinc functions.
Code:
clc
theta = 0:.01:2*pi;
t= theta;
phi = pi/2;
phino = pi/4;
lambda = 1;
L = lambda;
k = 2*pi/L;
a = 1;
b = 1;
Y = sin(k*a/(2)*(sin(phino) + sin(t)*sin(phi)))./(k*a/(2)*(sin(phino) + sin(t)*sin(phi)));
Z = sin(k*b/(2)*cos(t))./(k*b/(2)*cos(t));
E = sin(Y)./(Y) *sin(Z)./(Z); This is the E field
polarplot(theta,phi,phino,E)
Parameters:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/780398/image.png)
0 Kommentare
Akzeptierte Antwort
Arthi Sathyamurthi
am 30 Dez. 2021
Hello,
Since the type of antenna is not metioned, the pattern which is expected is unknown. So just considering the equations given and from your code, the major reason for not beig able to observe a polar plot was that equation of E had incorrect dimensions for matrix multiplication and the syntax of polarplot function was wrong. You can look into the documention here for examples on how to plot a polarplot. I have modified those lines alone and have attached the code snippet.
E = sin(Y)./(Y) .* sin(Z)./(Z); % Use .* to do elementwise multiplication
polarplot(theta,E) % phi an phino are constants
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Analysis, Benchmarking, and Verification finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!