Signal Processing Toolbox - Designfilt doesn't have 'window' in 'DesignMethod'

1 view (last 30 days)
I tried several code using Window but all failed because of the error
'window' is an invalid design method for
Here are some example code. Also, the filter design assistant doesn't have Window in DesignMethod. I am using Matlab 2015b with Signal Processing Toolbox and DSP System Toolbox installed
  2 Comments
Frantz Bouchereau
Frantz Bouchereau on 13 Jan 2016
Alvin, the particular design you are choosing only supports a Kaiser window design. This is the reason why the window parameter input is invalid. See also how the filter design assistant offers a 'Kaiser Window' design option.
Hope this helps,
Frantz
Frantz Bouchereau
Frantz Bouchereau on 13 Jan 2016
The design method name you are using is incorrect, here is a correct call for this particular filter design:
designfilt('bandpassfir', 'StopbandFrequency1', .35, 'PassbandFrequency1', .45, 'PassbandFrequency2', .55, 'StopbandFrequency2', .65, 'StopbandAttenuation1', 60, 'PassbandRipple', 1, 'StopbandAttenuation2', 60, 'DesignMethod', 'kaiserwin');
Frantz

Sign in to comment.

Answers (0)

Community Treasure Hunt

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

Start Hunting!