Question on Match Filters

조회 수: 5 (최근 30일)
James Manns
James Manns 2024년 2월 20일
답변: Abhishek 2025년 5월 2일
How do I create a MATLAB code for convolution to display the results below:
Consider a signal s1(t)=t^2, 0≤t≤1 so T=1. The signal is zero otherwise.
(a) Sketch the signal and the corresponding matched filter impulse response.
(b) What is the SNR at the output of the MF when sampled at t=T.
Assume noise PSD N0 to be 10^−12 Watt/Hz.
(c) Sketch the MF output signal versus time, showing the exact sample (from the signal) value to be obtained at the sampling instant. (Try plotting using computer, you can perform convolution)
  댓글 수: 3
James Manns
James Manns 2024년 2월 20일
I believe I have worked out the solution in the attached. However, when I researched the conv in MATLAB, the examples seem to be with matrices. When dealing with the attached, I don't know how to set up the conv line. I also did not see a section on it in the Onramp tutorial.
Image Analyst
Image Analyst 2024년 2월 20일
conv deals with vectors. conv2 deals with 2-D matrices.

댓글을 달려면 로그인하십시오.

답변 (1개)

Abhishek
Abhishek 2025년 5월 2일
Hi James,
I understand you want to perform the convolution of signal, defined in the interval,, with its matched filter impulse response.
To perform convolution of continuous time signals in MATLAB, here are some initial steps:
1. Define a time vector
step_size = 0.01
step_size = 0.0100
t = -2:step_size:2;
2. Define the signal
s_t = (t >= 0 & t <= 1) .* t.^2;
plot(t, s_t);
3. Get the matched filter impulse response
T = 1;
h_t = ((1-t) >= 0 & (1-t) <= 1) .* (1-t).^2;
plot(t, h_t);
With the variables ‘s_t’ and ‘h_t’ created, the next step is to perform convolution using the “conv” function, normalize the result (by multiplying the result with ‘step_size’) and plot it. The documentation for “conv” function can be found below:
With the above mentioned steps, I hope you will be able to proceed successfully. For any clarifications, please feel free to reach out!

카테고리

Help CenterFile Exchange에서 Statistics and Linear Algebra에 대해 자세히 알아보기

제품


릴리스

R2022b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by