Code covered by the BSD License  

Highlights from
Radar System Design and Analysis with MATLAB: Webinar

image thumbnail

Radar System Design and Analysis with MATLAB: Webinar

by

 

09 Apr 2013 (Updated )

MATLAB source code of examples showcased in this webinar

setupTx(maxrange,range_res,pd,pfa,nint,sAnt,apos,avel,fc)
%Copyright 2013 The MathWorks, Inc
function [sWav,sTx,sAntPlat,sRad,fs,prf] = setupTx(maxrange,range_res,pd,pfa,nint,sAnt,apos,avel,fc)
%% Chirp Waveform
propspeed = physconst('LightSpeed');    % Propagation speed
pulsebw = propspeed/(2*range_res);      % Pulse bandwidth
fs = 2.1*pulsebw;                       % Sample rate
time_bandwidth_product = 20;            % Time-bandwidth product
prf = propspeed/(2*maxrange);           % Pulse repetition frequency
sWav = phased.LinearFMWaveform('PRF',prf,'SampleRate',fs,...
                               'PulseWidth',time_bandwidth_product/pulsebw,...
                               'SweepBandwidth',pulsebw,...
                               'SweepInterval','Symmetric');

%% Transmitter
snr = shnidman(pd,pfa,nint,2);               % Swerling case 2
antG = phased.ArrayGain('SensorArray',sAnt); % Array gain
txG = 20;                                    % Transmitter gain
lambda = propspeed/fc;
Pt = radareqpow(lambda,maxrange,snr,sWav.PulseWidth,...
                'Gain',txG+step(antG,fc,0),'Loss',25); 
sTx = phased.Transmitter('Gain',txG,'PeakPower',Pt,'InUseOutputPort',true); 

%% Antenna Platform
sAntPlat = phased.Platform('InitialPosition',apos,'Velocity',avel);

%% Radiator 
sRad = phased.Radiator('Sensor',sAnt,'OperatingFrequency',fc,'CombineRadiatedSignals',true);

Contact us