www.gusucode.com > phased 案例源码 matlab代码程序 > phased/HeterogeneousUniformCircularArrayExample.m
%% Heterogeneous Uniform Circular Array % Construct an 8-element heterogeneous uniform circular array (UCA) using % the ConformalArray System object. Four of the elements have a cosine % pattern with a power of 1.6 while the remaining elements have a cosine % pattern with a power of 2.0. Plot the 3-D power response. Assume a % 1 GHz operating frequency. The wave propagation speed is the speed of light. % Copyright 2015 The MathWorks, Inc. %% Construct the array sElement1 = phased.CosineAntennaElement('CosinePower',1.6); sElement2 = phased.CosineAntennaElement('CosinePower',2.0); N = 8; azang = (0:N-1)*360/N-180; sArray = phased.HeterogeneousConformalArray(... 'ElementSet',{sElement1,sElement2},... 'ElementIndices',[1 1 1 1 2 2 2 2],... 'ElementPosition',[cosd(azang);sind(azang);zeros(1,N)],... 'ElementNormal',[azang;zeros(1,N)]); c = physconst('LightSpeed'); fc = 1e9; %% Create the 3-D power pattern pattern(sArray,fc,[-180:180],[-90:90],... 'CoordinateSystem','polar',... 'Type','power')