Antenna 3D pattern at any giving angle
2 views (last 30 days)
Show older comments
Hello everyone, I have crerated a 3D Antenna Patterns (simulation) , assuming the Ant patterns (radiation) pointing at 90 degree (looking from above), my goal here, is to change the radaition angle from 90 to 15 degree or from 90 to 175 degree (at any giving angle between 15 and 175 using contour or mesh function) . I have tried the camera view and rotation function but non of that a complished my goal , eventually I will put the mesh into for-loop and view it at any giving angle, Pease help me figuer out how to solve this issue.
f= 5.04e9; %frequncy in GHz
C= 3e8; % Global constant Speed of the light
d=21.5;
G_ant=3;
x= -5:0.01:5;
%%%%%%%%%%%% **************** %%%%%%%%%%%%
y= sin(x)';
xr=x*pi/180;
yr=y*pi/180;
a=sqrt(xr.^2+yr.^2);
x1= a*f*d/C;
sinc_xA= sinc(x1)+G_ant;
A=sinc_xA.^8;
z= 40*log10(A); %% array radiation pattern in dBs
%3D-Plot
figure(1)
% [xr,yr] = meshgrid(xr,yr);
mesh(xr,yr,z*4);
view(2)
xlabel('(degrees)');
ylabel('(degrees)');
zlabel('(Direction)');
figure(2)
contour(X,Y,abs(Z));
I appreciated any help
1 Comment
Bjorn Gustavsson
on 5 Jul 2019
Maybe replace your:
view(2)
with
view(AZ,EL)
where AZ and EL are azimuth and elevation-angles in degrees.
HTH
Answers (0)
See Also
Categories
Find more on Antennas, Microphones, and Sonar Transducers in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!