Matlab 3D antenna pattern plot
Matlab 3D antenna pattern plot
(OP)
Hi guys,
Who has any suggestion on 3d pattern plot like in text books of Kraus or Balanis? I figured out the dipole pattern. But for other pattern I didn't figure it out. Do you have any suggestions? Thanks! :)
my code:
lear all;
x=-0.5:.01:0.5;
y=(1+sqrt(1-4*x.^2))/2;
y2=(1-sqrt(1-4*x.^2))/2;
[X,Y,Z] = cylinder(y,40);
[X2,Y2,Z2]=cylinder(y2,40);
figure;
mesh(X,Y,Z,'edgecolor','blue')
hold on
mesh(X2,Y2,Z2,'edgecolor','blue')
hold off
axis equal
Who has any suggestion on 3d pattern plot like in text books of Kraus or Balanis? I figured out the dipole pattern. But for other pattern I didn't figure it out. Do you have any suggestions? Thanks! :)
my code:
lear all;
x=-0.5:.01:0.5;
y=(1+sqrt(1-4*x.^2))/2;
y2=(1-sqrt(1-4*x.^2))/2;
[X,Y,Z] = cylinder(y,40);
[X2,Y2,Z2]=cylinder(y2,40);
figure;
mesh(X,Y,Z,'edgecolor','blue')
hold on
mesh(X2,Y2,Z2,'edgecolor','blue')
hold off
axis equal
RE: Matlab 3D antenna pattern plot
The average gain (far field) over the entire sphere should be 0.0 dBi (or pretty darn close), not including any losses that might be included. This common sense rule applies to both mathematical models and real world data.
Depending on your data structure, you have to be careful when calculating the average. For example, if your data structure is essentially a Mercator projection (Az, El data points) - you will need to factor (cosine weight) the poles that are over-represented in the data set.
If the average gain is less than 0.0 dBi, then this indicates either system losses or an error. If the average gain is greater than 0.0 dBi, then this indicates either 'magic' <smirk> or an error.
This should be considered as an essential sanity check on any antenna pattern data set.