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

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

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
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

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

질문:

2015년 12월 27일

댓글:

2016년 1월 13일

Community Treasure Hunt

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

Start Hunting!

Translated by