How do I plot the impulse response from this equation?
이전 댓글 표시
I have been given an exercise to plot this equation h = h[1] = 1, h[2] = 3, h[3] = -2, h[4] = 9, h[5] = 7; I am very new to Matlab and I am confused as to whether I have to define some of the variables or simply just insert the equation? Sorry I cannot provide much more information I am a Matlab novice.
채택된 답변
추가 답변 (1개)
Youssef Khmou
2013년 10월 24일
편집: Youssef Khmou
2013년 10월 24일
try :
n=500;
[g,w]=freqz(h,n);
figure,plot(w,(abs(g)))
카테고리
도움말 센터 및 File Exchange에서 Labels and Styling에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!