3D directional antenna pattern

조회 수: 11 (최근 30일)
Maciej
Maciej 2012년 5월 30일
Hi All, I have been struggling for 2 day with problem I mentioned in title. I would like to visualize the 3D antenna pattern with 70 degrees beamwidth (half power angle) for horizontal plane and 15 degrees for vertical plane. I would like to see directivity (shape) and gain (as color of shape). I got some result but it is not what I wanted to see. I'm using standard approach with meshgrind and sph2cart functions, maybe I make mistake somewhere. I attached the code and image presenting the beam. Link to beam plot: http://speedy.sh/PwYen/an.png
clear all
close all
AntennaGain = 14; % typical gain for below angles
hangle3db = 70;
vangle3db = 15;
[phi theta] = meshgrid(-180:180,-90:90);
Zin = - (12*(phi/hangle3db).^2 + 12*(theta/vangle3db).^2);
Zin = Zin + AntennaGain; % total gain
mnz = min(min(Zin));
mxz = max(max(Zin));
shape = Zin;
[x y z] = sph2cart(phi*pi/180,theta*pi/180,shape);
surf(x,y,z,'EdgeColor','none')
daspect([1 1 1])
I would be so grateful for any comments and remarks.
Regards Maciek

답변 (1개)

Honglei Chen
Honglei Chen 2012년 5월 31일
I couldn't really comment on the pattern itself but I think part of the issue is that your color is not appropriately applied. You can try to replace your surf with the following command
surf(x,y,z,'EdgeColor','none','CData',Zin)
  댓글 수: 2
Maciej
Maciej 2012년 5월 31일
Thanks for your comment, but unfortunetaly it dosen't solve my problem at all. BTW I would like add something, namely how can I take into account the distance, is it possible, I'm afraid not, but maybe I'm wrong ?
Cheers
Maciek
Honglei Chen
Honglei Chen 2012년 5월 31일
Could you explain then what the issue is? What is the result you want to see?

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Antennas, Microphones, and Sonar Transducers에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by