Basic question of convolution

조회 수: 10 (최근 30일)
JjjO
JjjO 2021년 4월 17일
댓글: JjjO 2021년 4월 17일
Hi. I solved a problem using conv .
'y[n] = x[n] * h[n] when x[n] = h[n] = [1,3,2,4]'.
Like this:
x=[1,3,2,4];
h=[1,3,2,4];
y=conv(x, h)
stem(y,'r','LineWidth', 2);
But, when the equation is y[n] = x[n-1] * h[n+1], how can I make n-1 and n+1??

채택된 답변

Matt J
Matt J 2021년 4월 17일
편집: Matt J 2021년 4월 17일
But, when the equation is y[n] = x[n-1] * h[n+1], how can I make n-1 and n+1??
There is no need to in this case. because of the shift-invariance of convolution, the negative shift in x will be cancelled out by the positive shift in h.
  댓글 수: 3
Matt J
Matt J 2021년 4월 17일
That is what I mean.
JjjO
JjjO 2021년 4월 17일
Thank you :)

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

추가 답변 (1개)

AB WAHEED LONE
AB WAHEED LONE 2021년 4월 17일
편집: AB WAHEED LONE 2021년 4월 17일
Look Convolution for discrete case is defined as y[n]=Σ(x[k]*h[n-k])
so y[n-1]=Σ(x[k]*h[n-1-k]) and y[n+1]=Σ(x[k]*h[n+1-k])

카테고리

Help CenterFile Exchange에서 Correlation and Convolution에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by