%% Find Main, Back, and Side Lobes
% Create a dipole antenna and calculate its directivity at 270 MHz.

d = dipole;
D = pattern(d,270e6,0,0:1:360);

%
% Create a polar plot of the dipole directivity. Find the main, back, and side lobes of the dipole antenna.

p = polarpattern(D);
L = findLobes(p)

%
% Inspect main, back, and side lobe data.

MainLobe = L.mainLobe
BackLobe = L.backLobe
SideLobe = L.sideLobes

% Copyright 2012 The MathWorks, Inc.