www.gusucode.com > phased 案例源码 matlab代码程序 > phased/AzimuthPatternAndDirectivityHeterogeneousURAExample.m
%% Azimuth Pattern and Directivity of Heterogeneous URA % Construct a 3-by-3 heterogeneous URA of short-dipole antenna elements % with a rectangular lattice. Then, plot the array's azimuth pattern at 300 % MHz. % Copyright 2015 The MathWorks, Inc. sElement1 = phased.ShortDipoleAntennaElement(... 'FrequencyRange',[2e8 5e8],... 'AxisDirection','Z'); sElement2 = phased.ShortDipoleAntennaElement(... 'FrequencyRange',[2e8 5e8],... 'AxisDirection','Y'); sArray = phased.HeterogeneousURA(... 'ElementSet',{sElement1,sElement2},... 'ElementIndices',[1 1 1; 2 2 2; 1 1 1]); fc = 300e6; c = physconst('LightSpeed'); pattern(sArray,fc,[-180:180],0,... 'PropagationSpeed',c,... 'CoordinateSystem','rectangular',... 'Type','powerdb',... 'Normalize',true,... 'Polarization','combined') %% % Plot the same result in polar form. pattern(sArray,fc,[-180:180],0,... 'PropagationSpeed',c,... 'CoordinateSystem','polar',... 'Type','powerdb',... 'Normalize',true,... 'Polarization','combined') %% % Finally, plot the directivity. pattern(sArray,fc,[-180:180],0,... 'PropagationSpeed',c,... 'CoordinateSystem','rectangular',... 'Type','directivity')