%% Write and Read MSI Antenna Data File
% Create a helix antenna and plot the elevation pattern at 2 GHz.

h = helix;
patternElevation(h,2e9,[0 45 90],'Elevation',0:1:360);

%
% Write the elevation pattern of the helix antenna in an MSI Planet Antenna file.

msiwrite(h,2e9,'helix','Name','Helix Antenna Specifications')

% The msiwrite function saves a file named helix.pln to the default MATLAB™ folder.
% NAME Helix Antenna Specifications
% FREQUENCY 2000.0
% GAIN 8.74 dBi
% HORIZONTAL 360
% 0.00 13.56
% 1.00 13.48
% 2.00 13.39
% 3.00 13.30
% 4.00 13.22
% 5.00 13.13
%
% Read the MSI antenna data file created.

msiread helix.pln

%
% Copyright 2012 The MathWorks, Inc.