How can i plot a impulse response based on z-transfer function or difference equation

조회 수: 11 (최근 30일)
Hey guys,
i have the followeing z-transfer function:
G(z) = z^4 + 2z^3 + 3z^2 / z^4 - 1
I tried to reproduce the impuls response which can be seen in the figure. But i dont know how to do it. I tried a lot but always fail. Can anybody tell me how can i reproduce the impulse response ?

채택된 답변

Paul
Paul 2020년 9월 9일
G = tf([1 2 3 0 0],[1 0 0 0 -1],-1);
impulse(G,20)
  댓글 수: 1
Hamid Rezaie
Hamid Rezaie 2020년 9월 9일
Perfect ! This is what i exactly what i was looking for *_*. Just one more question: How can i fit the y-axis for the plot of this code ?
G = tf([2 2 2 0 ],[1 0 0 1], -1);
impulse(G,10)

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Pole and Zero Locations에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by