Code covered by the BSD License  

Highlights from
Phased Array Design Toolbox v2.4.2

image thumbnail

Phased Array Design Toolbox v2.4.2

by

 

10 Feb 2009 (Updated )

A toolbox allowing rapid definition and evaluation of 2D and 3D phased array antennas.

exstatvar1.m
% STATISTICAL VARIATION EXAMPLE (exstatvar1)
%
% Shows the effect of normally distributed random variations
% in phase and amplitude on array performance.
%
% In this example a 6-element patch array, with amplitude taper,
% is steered 20 Deg from bore-sight.
%
% Random variations are applied by the function plot_theta_statvar.m 
% as follows :
%
% Normally distributed phase variations of +/- 10 Deg
% Normally distrubuted amplitude variations of +/- 1 dB 
%
% The function makes multiple pattern cuts, each with a different set
% of randomised phases and amplitudes, building up a pattern envelope
% of maximum and minimum values.
%
% See inside this file to change the array configuration under test.


close all
clc

help exstatvar1

init;

% ****** Some input parameters to experiment with *******

Nx=6;         % Number of elements in X-axis direction
Ny=1;         % Number of elements in Y-axis direction
Prng=10;      % Phase range (Deg) 99.7pcnt of the phase errors will be within +/- Prng
Arng=1;       % Amplitude range (dB) 99.7pcnt of the amplitude errors will be within +/- Arng
Nruns=50;     % Number of plots to make

thetamin=-90; % Min theta for plots
thetastep=1;  % Theta step for plots
thetamax=90;  % Max theta for plots
phi=0;        % Phi cut
thetasqnt=20; % Steer main beam in theta (Deg)
phisqnt=0;    % Steer main beam in phi (Deg)
SLL=20;       % Sidlobe reduction (dB) w.r.t main beam


% ***************  Array definition *********************

freq_config=2.45e9;                                     % Specify frequency
lambda=3e8/freq_config;                                 % Calculate wavelength
patchr_config=design_patchr(3.43,1.6e-3,freq_config);   % Calculate patch parameters

rect_array(Nx,Ny,0.6*lambda,0.6*lambda,'patchr',0);     % Define the array array
taywin_array(SLL,'x');                                  % Amplitude taper
squint_array(thetasqnt,phisqnt,1);                      % Steer main beam


% ***************   Plot results ************************

list_array(0);
plot_geom3d(1,0);
calc_directivity(5,15);
[tha,minp,maxp]=plot_theta_statvar(thetamin,thetastep,thetamax,phi,'tot','no',Prng,Arng,Nruns); 

Contact us