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

    %% Pattern of Array of Polarized Short-Dipole Antennas  
% Construct a heterogeneous uniform line array of 10 short-dipole sensor
% elements. Because short dipoles support polarization, the array should
% also. Verify that the array supports polarization by looking at the
% output of |isPolarizationCapable|. Then, draw the array, showing the
% tapering.

% Copyright 2015 The MathWorks, Inc.


%% Construct the array
% Construct the array. Then, verify that it supports polarization by
% looking at the returned value of the |isPolarizationCapable| method.
sElement1 = phased.ShortDipoleAntennaElement(...
    'FrequencyRange',[100e6 1e9],...
    'AxisDirection','Z');
sElement2 = phased.ShortDipoleAntennaElement(...
    'FrequencyRange',[100e6 1e9],...
    'AxisDirection','Y');
sArray = phased.HeterogeneousULA(...
    'ElementSet',{sElement1,sElement2},...
    'ElementIndices',[1 1 2 2 2 2 2 2 1 1 ],...
    'Taper',taylorwin(10)');
isPolarizationCapable(sArray)

%% View the array
viewArray(sArray,'ShowTaper',true,'ShowIndex',...
    'All','ShowTaper',true)

%% Show the response
% Show the element horizontal polarization responses at 10
% degrees azimuth angle.
fc = 150e6;
ang = [10];
resp = step(sArray,fc,ang)
resp.H

%% Plot the combined polarization response
c = physconst('LightSpeed');
pattern(sArray,fc,[-180:180],0,...
    'PropagationSpeed',c,...
    'CoordinateSystem','polar',...
    'Type','powerdb',...
    'Polarization','combined');