plotResponse
Plot range response from pulse compression library
Description
Examples
Range Response for Three Targets
Plot the range response of an LFM signal hitting three targets at ranges of 2000, 4000, and 5500 meters. Assuming the maximum range of the radar is 10 km, determine the pulse repetition interval from the maximum range.
Create the LFM 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();
Embed the waveform section of the pulse into the received signal.
x = w(1:11); rxdata(idx1:idx1+10) = x; rxdata(idx2:idx2+10) = x; rxdata(idx3:idx3+10) = x;
Create the pulse waveform library.
w1 = {'LinearFM','PulseWidth',10/fs,'PRF',prf, ... 'SweepBandwidth',(30*fs)/40}; wavlib = pulseWaveformLibrary('SampleRate',fs,'WaveformSpecification',{w1}); wav = wavlib(1);
Generate the range response signal.
p1 = {'MatchedFilter','Coefficients',getMatchedFilter(wavlib,1),'SpectrumWindow','None'}; idx = 1; complib = pulseCompressionLibrary( ... 'WaveformSpecification',{w1}, ... 'ProcessingSpecification',{p1}, ... 'SampleRate',fs, ... 'PropagationSpeed',c); y = complib(rxdata,1);
Plot the range response.
plotResponse(complib,rxdata,idx,'Unit','mag');
Input Arguments
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.
Example: 3
Data Types: double
pulseidx
— Stepped FM waveform subpulse
1
(default) | 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
Version History
Introduced in R2018b
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)