%% Antenna Excited By Plane Wave In Arbitrary Direction
% Consider a dipole excited by a plane wave.

p = planeWaveExcitation;
p.Direction = [0 1 1];
show(p)

% If you use the above option, any analysis of this antenna will error out as the polarization and direction vector are not orthogonal to each other.
%
% Use the cross-product function to find the appropriate polarization direction of such a wave.

p = planeWaveExcitation;
p.Polarization = cross(p.Direction, [0 1 1]);
show(p);

%
% Calculate the current distribution of the antenna.

current(p,75e6);

% Copyright 2012 The MathWorks, Inc.