matalb convolution with memory

조회 수: 5 (최근 30일)
iz
iz 2019년 9월 2일
답변: John D'Errico 2019년 9월 2일
hi,
i have an impule function h[n]=δ[n]+3δ[n-1]-h[n-1]
x[n]=rectangular...
how can i convolute the 2 sequences? how can i define in matlab h[n] when i have h[n-1] also?

답변 (1개)

John D'Errico
John D'Errico 2019년 9월 2일
This is not a job for convolution, since h lies on both sides of the equality, with a lag on h.
Use filter instead.
You should see this fits trivially into the form that filter solves:
Y = filter(B,A,X) filters the data in vector X with the
filter described by vectors A and B to create the filtered
data Y. The filter is a "Direct Form II Transposed"
implementation of the standard difference equation:
a(1)*y(n) = b(1)*x(n) + b(2)*x(n-1) + ... + b(nb+1)*x(n-nb)
- a(2)*y(n-1) - ... - a(na+1)*y(n-na)

카테고리

Help CenterFile Exchange에서 Specialized Power Systems에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by