impulse response from transfer function in matlab
74 次查看(过去 30 天)
显示 更早的评论
i have a transfer function given by
H(z)= 1-z^(-1)/1-z^(-1)+z^(-2)
how to find its impulse response h(n) in matlab what is the code for the same ?
0 个评论
采纳的回答
Star Strider
2016-1-12
This is how I would do it:
% H(z)= 1-z^(-1)/1-z^(-1)+z^(-2)
b = [1 -1];
a = [1 -1 1];
figure(1)
impz(b,a)
7 个评论
Star Strider
2022-1-12
% H(z)= 1-z^(-1)/1-z^(-1)+z^(-2)
b = [1 -1];
a = [1 -1 1];
figure(1)
impz(b,a)
figure(2)
stepz(b,a)
.
更多回答(1 个)
Abdul Jabbar
2016-12-10
z^-1 -4z^-2 -2z^-4 can any one tell me that how i can find the impulse response of this function?
2 个评论
Petar Mostarac
2023-12-8
编辑:Petar Mostarac
2023-12-8
Is this a joke? :)
It is -1, -4 0 -2 and zeros to inf.
z^-1 is one sample delay, one step delay
Formarly, use basic knowladge to find H(z) in form H=b/a and then you can use:
h=impz(b,a, length_of_impulse_response)
In your question: b=[1 -4 0 -2] and a=[1 0 0 0]
If it is a joke, then is a good one :)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Digital Filter Analysis 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!