%% Calculate EH Fields in Spherical Coordinates
% Calculate electric and magnetic fields at a point 1 m along the z-axis from an Archimedean spiral antenna. Return the field as azimuth, elevation, and radius values in a spherical coordinate system.

h = spiralArchimedean;
[e,h] = EHfields(h,4e9,[0;0;1],'CoordinateSystem','spherical')

% Copyright 2021 The MathWorks, Inc.