www.gusucode.com > phased 案例源码 matlab代码程序 > phased/DirectivityPatternHeteroULAUVSpaceExample.m
%% Directivity Pattern in UV Space % Create an 11-element hetergeneous ULA from short-dipole antenna elements % with different axis directions. Draw the 3-D power pattern for the % horizontal polarization component at 300 MHz. % Copyright 2015 The MathWorks, Inc. %% Construct Heterogeneous ULA % Construct the array from z-directed and y-directed short dipole % antenna elements. sElement1 = phased.ShortDipoleAntennaElement(... 'FrequencyRange',[2e8 5e8],... 'AxisDirection','Z'); sElement2 = phased.ShortDipoleAntennaElement(... 'FrequencyRange',[2e8 5e8],... 'AxisDirection','Y'); sArray = phased.HeterogeneousULA(... 'ElementSet',{sElement1,sElement2},... 'ElementIndices',[1 1 1 2 2 2 2 2 1 1 1]); %% Plot the patterns fc = 300e6; c = physconst('LightSpeed'); pattern(sArray,fc,[-1:.01:1],[-1:.01:1],... 'PropagationSpeed',c,... 'CoordinateSystem','uv',... 'Type','powerdb',... 'Polarization','H')