%% Reconstruct Pattern of Sector Antenna from 2-D Slices
% Load the MAT file containing the data of the sector antenna pattern.

load sectorAntennaSlices.mat

% Reconstruct the pattern from the data provided using the Summing algorithm.

 patternFromSlices(vertSlice,theta,horizSlice,phi,'Method','Summing')
 [pat3D,thetaout,phiout] = patternFromSlices(vertSlice,theta,horizSlice,phi,'Method','Summing');
 pat3D = pat3D(1:5)
 thetaout = thetaout(1:5)
 phiout = phiout(1:5)

% Copyright 2018 The MathWorks, Inc.