Continue to Site

Welcome to EDAboard.com

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.

3D pattern using Matlab

Status
Not open for further replies.

ataha

Junior Member level 2
Junior Member level 2
Joined
Mar 25, 2004
Messages
23
Helped
2
Reputation
4
Reaction score
1
Trophy points
1,283
Location
EGYPT
Activity points
169
3d radiation pattern matlab

I need to plot a 3D pattern of an Antenna , How can I do using MATLAB
 

matlab 3d antenna radiation pattern

use the plot3 function but your inputs should be proper.
 
matlab plot theta,phi,r

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
 
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.
 
Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top