www.gusucode.com > phased 案例源码 matlab代码程序 > phased/AzimuthResponse3by2HeteroURAExample.m
%% Azimuth Response of a 3-by-2 Heterogeneous URA % Construct a 3-by-2 heterogeneous URA with a rectangular lattice, % and find the response of each element at 30 degrees azimuth and % 0 degrees elevation. Assume the operating frequency is 1 GHz. % Copyright 2015 The MathWorks, Inc. sElement1 = phased.CosineAntennaElement('CosinePower',1.5); sElement2 = phased.CosineAntennaElement('CosinePower',1.8); sArray = phased.HeterogeneousURA(... 'ElementSet',{sElement1,sElement2},... 'ElementIndices',[1 1; 2 2; 1 1]); fc = 1e9; ang = [30;0]; resp = step(sArray,fc,ang) %% % Plot the azimuth response of the array. c = physconst('LightSpeed'); pattern(sArray,fc,[-180:180],0,... 'PropagationSpeed',c,... 'CoordinateSystem','polar',... 'Type','powerdb','Normalize',true)