微波EDA网,见证研发工程师的成长!
首页 > 研发问答 > 微波和射频技术 > 天线设计和射频技术 > 3d radiation pattern matlab

3d radiation pattern matlab

时间:04-11 整理:3721RD 点击:
I need to plot a 3D pattern of an Antenna , How can I do using MATLAB

use the plot3 function but your inputs should be proper.

as u know the pattern of an antenna is in spherical coordination, somthing like r=f(teta,phi)
first of all define variables teta and phi as vectors with fine grids (but not too much length). then calculate r=f(teta,phi).
then u can define x=rsin(teta)cos(phi), y=rsin(teta)sin(phi) and z=rcos(teta) .

finally use surf(x,y,z) to plot the 3-D pattern

Hi,

I think you may have a problem with that, since Matlab hasn't 3D polar plot instruction.

However I use a spherical triangular grid (either imported as ASCII from any 3D graphing tool, or generated manually) then use PATCH3 instruction to plot the triangles with the color being proportional to the radiation intensity (or gain in that direction).

Here is a simple code for the grid

philist = [];
thetalist = [];
for phi = linspace(0,2*pi,10)
for theta = linspace(0,pi,10)
philist = [philist phi];
thetalist = [thetalist theta];
end
end

R = 1;
X = R * sin(theta) .* cos(phi);
Y = R * sin(theta) .* sin(phi);
Z = R * cos(theta);
C = theta .* phi; % the radiation pattern function of theta and phi

surf(x,y,z,c);

the above program may have a few bugs but you got the idea.

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top