Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
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) .
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.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.