How can i create a convolution using toeplitz matrix?

조회 수: 13 (최근 30일)
Gn Gnk
Gn Gnk 2019년 11월 5일
댓글: Gn Gnk 2019년 11월 6일
Hello ,
i want to create a convolution between two signals but i need to make this happen using the teoplitz command that creates a toeplitz matrix .The problem here is that my first signal (h) is 1x5 matrix and the other signal (a) is 1x21 matrix .The process should be y=toeplitz(h or a) .* transpose(h or a) .How can i create the convolution using the toeplitz command in matlab?
thank you.

채택된 답변

Matt J
Matt J 2019년 11월 5일
편집: Matt J 2019년 11월 5일
Consider
>> x=1:5, y=rand(1,5),
x =
1 2 3 4 5
y =
0.2899 0.4714 0.8782 0.6555 0.3184
and notice,
>> v1=(tril(toeplitz(x))*y(:)).'
v1 =
0.0306 0.6362 2.2098 4.2551 6.6630
>> v2=conv(x,y); v2=v2(1:numel(v1))
v2 =
0.0306 0.6362 2.2098 4.2551 6.6630
  댓글 수: 3
Matt J
Matt J 2019년 11월 6일
Zero-pad.
Gn Gnk
Gn Gnk 2019년 11월 6일
Thank you a lot!

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

추가 답변 (0개)

카테고리

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