FIR filter

10 ビュー (過去 30 日間)
Qifei
Qifei 2012 年 6 月 13 日
Make a matlab function for design a FIR filter of order 32 with the LMS method.
I am now learning to use matlab . first learner,, Can anyone give some suggestions ? Thank you very much!

採用された回答

Wayne King
Wayne King 2012 年 6 月 13 日
b = firls(30,[0 .1 .2 .5]*2,[1 1 0 0]);
fvtool(b);
Obviously you have to specify more than the order. You have to give your frequencies and the amplitudes you wish at those frequencies. I have just used some values above.
Please read the reference page for firls.
Also, I'm assuming that you mean this filter and not the LMS adaptive FIR filter.
  2 件のコメント
Qifei
Qifei 2012 年 6 月 13 日
you are right.. I mean the firls . Thanks very much ! and how about " the same filter with the matlab function fir1 with a hamming and boxcar windows". What is the difference between them ?
I am totally confused by these filters ...
Wayne King
Wayne King 2012 年 6 月 13 日
fir1 uses the window method. That is a different filter design method. The window method is described in any DSP book.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by