%% Add Cursors to Two Data Sets
% Create a top-hat monopole and plot its directivity at a frequency of 75 MHz.

m = monopoleTopHat;
M = pattern(m,75e6,0,0:1:360);
P = polarpattern(M);

%
% Create a dipole antenna and calculate its directivity at a frequency of 270 MHz.

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

%
% Add the directivity pattern of the dipole to the polar plot of the top-hat monopole.

add(P,D);

%
% Add a cursor at approximately 30 degrees to the top-hat monopole polar pattern (data set 1) and at approximately 150 degrees to the dipole polar pattern (data set 2).

addCursor(P,[30 150],[1 2]);

% Copyright 2012 The MathWorks, Inc.