フィルターのクリア

How do I plot the impulse response from this equation?

2 ビュー (過去 30 日間)
Niamh Mc Devitt
Niamh Mc Devitt 2013 年 10 月 24 日
編集済み: Youssef Khmou 2013 年 10 月 24 日
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.

採用された回答

Jan
Jan 2013 年 10 月 24 日
Maybe you want to do something like:
h = [1, 3, -2, 9, 7];
ft_h = fft( h );
ft_h = sqrt( ft_h .* conj( ft_h ) );
plot( ft_h );

その他の回答 (1 件)

Youssef  Khmou
Youssef Khmou 2013 年 10 月 24 日
編集済み: Youssef Khmou 2013 年 10 月 24 日
try :
n=500;
[g,w]=freqz(h,n);
figure,plot(w,(abs(g)))

カテゴリ

Help Center および File ExchangeBartlett についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by