matchingloss
Receiver filter matching loss
Syntax
Description
Examples
Calculate Matching Loss
Compute the matching loss for a rectangular pulse and a mismatched second-order Butterworth filter.
Define sampling frequency, pulsewidth, and filter bandwidth.
Fs = 10; % Sampling frequency (Hz) tau = 1.2; % Pulsewidth (s) B = 1.0; % Filter bandwidth (Hz)
Calculate the rectangular pulse in the time domain.
s = ones(1,Fs*tau);
Calculate the spectrum of the received pulse.
nfft = 2^(nextpow2(tau*Fs)+1); S = fft(s,nfft);
Calculate the frequency response of a second-order Butterworth filter with bandwidth B
.
[b,a] = butter(2,B/Fs);
[H,w] = freqz(b,a,nfft,'whole',Fs);
Compute the matching loss for the pulsewidth-bandwidth product, tau*B
= 1.2.
Lm = matchingloss(S,H.')
Lm = 0.9806
Input Arguments
S
— Spectrum of received signal
J
-by-N
matrix
Spectrum of the received signal, specified as a J-by-N matrix with rows corresponding to spectra of J signals and columns corresponding to N frequency bins.
H
— Frequency response of mismatch filter
K
-by-N
matrix
Frequency response of the mismatch filter, specified as a
K-by-N matrix with rows corresponding to
frequency responses of K
filters and columns
corresponding to N frequency bins.
Note
The columns of S
and H
must correspond to the
same N frequency bins.
Output Arguments
Lm
— Matching loss
J
-by-K
matrix
Matching loss, returned as a J-by-K matrix in dB. The matching loss matrix is computed for each combination of J signals and K filters.
Extended Capabilities
C/C++ Code Generation
Generate C and C++ code using MATLAB® Coder™.
Version History
See Also
Beispiel öffnen
Sie haben eine geänderte Version dieses Beispiels. Möchten Sie dieses Beispiel mit Ihren Änderungen öffnen?
MATLAB-Befehl
Sie haben auf einen Link geklickt, der diesem MATLAB-Befehl entspricht:
Führen Sie den Befehl durch Eingabe in das MATLAB-Befehlsfenster aus. Webbrowser unterstützen keine MATLAB-Befehle.
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)