Graphics Programs Reference
In-Depth Information
switch Variations
case 'Theta'
axis ([0 180 -60 0 ])
xlabel('Theta [Degrees]')
title ( 'phi = 90^o plane')
case 'Phi'
axis ([0 360 -60 0 ])
xlabel('Phi [Degrees]')
title ( 'Theta = 90^o plane')
end
figure(3)
polar(angler,Array)
title ('Array pattern')
figure(4)
polardb(angler,Array)
title ('Power pattern [dB]')
% the plots provided above are for the array factor based on the circular
% array plots for other patterns such as those for the antenna element
% (Element)or the total pattern (Etotal based on Element*Arrayfactor) can
% also be displayed by the user as all these patterns are already computed
% above.
figure(10)
subplot(2,2,1)
polardb (angler,Element,'b-'); % rectangular plot of element pattern
title('Element normalized E field [dB]')
subplot(2,2,2)
polardb(angler,Array,'b-')
title(' Array Factor normalized [dB]')
subplot(2,2,3)
polardb(angler,EtotalR,'b-'); % polar plot
title('Total normalized E field [dB]')
%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%
function polardb(theta,rho,line_style)
% POLARDB Polar coordinate plot.
% POLARDB(THETA, RHO) makes a plot using polar coordinates of
% the angle THETA, in radians, versus the radius RHO in dB.
% The maximum value of RHO should not exceed 1. It should not be
% normalized, however (i.e., its max. value may be less than 1).
% POLAR(THETA,RHO,S) uses the linestyle specified in string S.
% See PLOT for a description of legal linestyles.
if nargin < 1
error('Requires 2 or 3 input arguments.')
elseif nargin == 2
Search WWH ::




Custom Search