www.gusucode.com > phased 案例源码 matlab代码程序 > phased/ResponseCrossedDipoleAntennaExample.m

    %% Plot Response of a Crossed-Dipole Antenna
% Examine the response patterns of a crossed-dipole antenna used in an L-band
% radar with a frequency range between 1-2 GHz.

% Copyright 2015 The MathWorks, Inc.


%%
% First, set up the radar parameters, and obtain the vertical and horizontal
% polarization responses at five different directions: elevation angles -30, -15, 0,
% 15 and 30 degrees, all at 0 degrees azimuth angle. The responses are computed
% at an operating frequency of 1.5 GHz.
sCD = phased.CrossedDipoleAntennaElement(...
    'FrequencyRange',[1,2]*1e9);
fc = 1.5e9;
resp = step(sCD,fc,[0,0,0,0,0;-30,-15,0,15,30]);
[resp.V, resp.H]

%%
% Next, draw a 3-D plot of the combined polarization response.
pattern(sCD,fc,[-180:180],[-90:90],...
    'CoordinateSystem','polar',...
    'Type','powerdb',...
    'Polarization','combined')