www.gusucode.com > phased 案例源码 matlab代码程序 > phased/RadiatingFrom5ElementULAExample.m
%% Radiation from 5-Element ULA % Combine the radiation from five isotropic antenna elements. %% % *Note:* This example runs only in R2016b or later. If you are using an earlier % release, replace each call to the function with the equivalent |step| % syntax. For example, replace |myObject(x)| with |step(myObject,x)|. %% % Set up a uniform line array of five isotropic antennas. Then, construct % the radiator object. ula = phased.ULA('NumElements',5); %% % Construct the radiator object. radiator = phased.Radiator('Sensor',ula,... 'OperatingFrequency',300e6,'CombineRadiatedSignals',true); %% % Create a simple signal to radiate. x = [1;1]; %% % Specify the radiating direction in azimuth and elevation. radiatingAngle = [30; 10]; %% % Radiate the signal. y = radiator(x,radiatingAngle)