%% Plot Electric and Magnetic Field Vector of Antenna
% Create an Archimedean spiral antenna. Plot electric and magnetic field vector at the z = 1cm plane from the antenna.

h = spiralArchimedean;

%
% Define points on a rectangular grid in the X-Y plane.

[X,Y] = meshgrid(-.05:.01:.05,-.05:.01:.05);

%
% Add a z-offset of 0.01.

p = [X(:)';Y(:)';.01*ones(1,prod(size(X)))];

%
% Plot electric and magnetic field vector at the z = 1cm plane. from the antenna

EHfields (h,4e9,p)

% Copyright 2015 The MathWorks, Inc.