Plot the range response of an LFM signal hitting three targets. The ranges are 2000, 4000, and 5500 meters. Assume the radar maximum range is 10 km. Set the pulse repetition interval from the maximum range.
Create the pulse waveform.
rmax = 10.0e3;
c = physconst('Lightspeed');
pri = 2*rmax/c;
fs = 1e6;
pri = ceil(pri*fs)/fs;
prf = 1/pri;
nsamp = pri*fs;
rxdata = zeros(nsamp,1);
t1 = 2*2000/c;
t2 = 2*4000/c;
t3 = 2*5500/c;
idx1 = floor(t1*fs);
idx2 = floor(t2*fs);
idx3 = floor(t3*fs);
lfm = phased.LinearFMWaveform('PulseWidth',10/fs,'PRF',prf, ...'SweepBandwidth',(30*fs)/40);
w = lfm();
Imbed the waveform part of the pulse into the received signal.
complib — Pulse compression library phased.PulseCompressionLibrary
System object™
Pulse compression library, specified as a
phased.PulseCompressionLibrary
System object.
X — Input signal complex-valued K-by-L
matrix | complex-valued K-by-N
matrix | complex-valued
K-by-N-by-L
array
Input signal, specified as a complex-valued
K-by-L matrix, complex-valued
K-by-N matrix, or a complex-valued
K-by-N-by-L
array. K denotes the number of fast time samples,
L the number of pulses, and N is
the number of channels. Channels can be array elements or beams.
Data Types: double Complex Number Support: Yes
idx — Index of processing specification in pulse compression library positive integer
Index of processing specification in the pulse waveform library, specified
as a positive integer.
Stepped FM waveform subpulse, specified as a positive integer. This index
selects which subpulses of a stepped-FM waveform to plot. This argument only
applies to stepped-FM waveforms.
Example: 5
Data Types: double
unit — Plot units 'db' (default) | 'mag' | 'pow'
Plot units, specified as 'db',
'mag', or 'pow'. who
'db' – plot the response power in
dB.
'mag' – plot the magnitude of the
response.
'pow' – plot the response power.
Example: 'mag'
Data Types: char | string
Introduced in R2018b
Open Example
You have a modified version of this example. Do you want to open this example with your edits?