impulse response of a LTI system in Matlab

2 次查看(过去 30 天)
Hi I've been learning Matlab for a month and I have no idea how to solve them.
My code works, but the result isn't what I expected.
a=[1,1,1];
b=[0,0,1,-1,1,-1];
x=impseq(0,0,6); n=[0:6];
h=filter(b,a,x);
stem(n,h,'r','LineWidth', 2);
I don't know which part I should fix... please help me.
  2 个评论
Jithin Nambiar J
Jithin Nambiar J 2021-4-12
Can you please explain what the question actually is? Do you want to find out the convolution of the sequences?
JjjO
JjjO 2021-4-12
Yes I want to find out the convolution.

请先登录,再进行评论。

采纳的回答

Swetha Polemoni
Swetha Polemoni 2021-4-15
Hi
You can use "conv" to find convolution.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Matched Filter and Ambiguity Function 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by