Antenna 3D pattern at any giving angle

3 ビュー (過去 30 日間)
Irwin2020
Irwin2020 2019 年 7 月 3 日
コメント済み: Bjorn Gustavsson 2019 年 7 月 5 日
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 件のコメント
Bjorn Gustavsson
Bjorn Gustavsson 2019 年 7 月 5 日
Maybe replace your:
view(2)
with
view(AZ,EL)
where AZ and EL are azimuth and elevation-angles in degrees.
HTH

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeAntennas, 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