www.gusucode.com > phased 案例源码 matlab代码程序 > phased/AzimuthResponseSubarraysRestrictedAnglesExample.m
%% Display Azimuth Response of Array with Subarrays Between -30 and 30 Degrees % Create a 2-element ULA, and arrange two copies to form a 4-element ULA. % Using the |AzimuthAngles| parameter, plot the response within % a restricted range of azimuth angles from -30 to 30 degrees in % 0.1 degree increments. % Copyright 2015 The MathWorks, Inc. h = phased.ULA('NumElements',2,'ElementSpacing',0.5); ha = phased.ReplicatedSubarray('Subarray',h,... 'Layout','Rectangular','GridSize',[1 2],... 'GridSpacing','Auto'); plotResponse(ha,1e9,3e8,'RespCut','Az','Format','Polar',... 'AzimuthAngles',[-30:0.1:30],'Unit','mag');