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!