%% Scan Main Beam of 3-by-3 Rectangular Array of Reflector-Backed Dipoles
%  Create a 3-by-3 rectangular array of reflector-backed dipoles at an operating frequency of 1.8 GHz, and scan the main beam at 30 degrees along the azimuth and 45 degrees along the elevation.

a = design(rectangularArray('Size',[3 3]),1.8e9,reflector);
ps = phaseShift(a,1.8e9,[30;45])
a.PhaseShift = ps

% Calculate the radiation pattern of the array.

pattern(a,1.8e9)

%
% Copyright 2018 The MathWorks, Inc.