www.gusucode.com > phased 案例源码 matlab代码程序 > phased/ResponseSubarraysWithPolarizedAntennaElementsExample.m
%% Response of Subarrays with Polarized Antenna Elements % Create a 4-element ULA from two 2-element ULA subarrays consisting of % short-dipole antenna elements. Then, calculate the response at boresight. % Because the array elements support polarization, the response consists of % horizontal and vertical components. %% % Create the arrays from subarrays. % Copyright 2015 The MathWorks, Inc. sSD = phased.ShortDipoleAntennaElement; sULA = phased.ULA('Element',sSD,... 'NumElements',2,... 'ElementSpacing',0.5); sRSA = phased.ReplicatedSubarray('Subarray',sULA,... 'Layout','Rectangular',... 'GridSize',[1 2],... 'GridSpacing','Auto'); %% % Show the vertical polarization response for the subarrays. fc = 1.0e9; ang = [0;0]; resp = step(sRSA,fc,ang,physconst('LightSpeed')); disp(resp.V)