%% Radiation Pattern of Helix in X-Z Plane
% Plot the radiation pattern of a helix antenna in xz-plane.

h = helix; 
pattern (h, 2e9, 0, 1:1:360);
[pat,azimuth,elevation] = pattern (h, 2e9, 0, 1:1:360);

% Compute the maximum and the minimum value of the radiation pattern and the elevation angle.

pattern_max = max(max(pat))
pattern_min = min(min(pat))
elevation_max = max(elevation) 
elevation_min = min(elevation) 

% Copyright 2012 The MathWorks, Inc.