How to export the values of the radiation pattern from antenna designer to workspace
9 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
EN
el 31 de Mzo. de 2020
Comentada: alan cheville
el 10 de Abr. de 2022
When using Antenna designer we can plot the elevation pattern and impedance etc. What is the easiest way to extract the individual values from these plots
in order to do further processing on them in Matlab?
0 comentarios
Respuesta aceptada
Shashank Kulkarni
el 1 de Abr. de 2020
Export your design into a MATLAB script. Then you can pass a LHS to the pattern function to get the maginitude of the directivity to the workspace.
I hope this helps.
Regards,
Shashank
4 comentarios
Jeffrey Lytle
el 2 de Mzo. de 2021
Using, a=patternElevation(antennaObject, plotFrequency); I am able to get the El and AZ patterns, how do I get the 3D pattern?
alan cheville
el 10 de Abr. de 2022
I didn't know what an LHS was so had to figure this out on my own. Basically if you export the script then modify the last line and past the code below into the bottom of the script you can generate the pattern:
[D,phi,theta] = pattern(antennaObject, plotFrequency) % Modify the last line to export parameters
phi = phi/180*pi+pi; % change to 0 to 2*pi rather than -pi to pi
theta = theta/180*pi + pi/2; % change to 0 to pi rather than -pi/2 to pi/2
[Phi Theta] = meshgrid(phi,theta);
RdB = (D-min(D))./(max(D)-min(D)); % normalize to between 0 and 1
X = RdB.*sin(Theta).*cos(Phi);
Y = RdB.*sin(Theta).*sin(Phi);
Z = RdB.*cos(Theta);
figure;
surf(X,Y,Z)
Más respuestas (0)
Ver también
Categorías
Más información sobre Get Started with Antenna Toolbox en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!