phi pattern matlab
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.