MATLAB: Do I receive an error when using the calling syntax stated in the documentation for FDESIGN.NYQUIST in Filter Desisgn Toolbox 3.2 (R14SP2)

designfdesignfilterFilter Design Toolboxnyquistspectype

I receive an error when using the syntax in the documentation for FDESIGN.NYQUIST in Filter Desisgn Toolbox 3.2 (R14SP2).
In the documentation for FDESIGN.NYQUIST, the following syntaxes are given:
d = fdesign.nyquist
d = fdesign.nyquist(spectype)
d = fdesign.nyquist(spectype,specvalue1,specvalue2, …)
d = fdesign.nyquist('tw,ast')
d = fdesign.nyquist(…,fs)
d = fdesign.nyquist(…,magunits)
The first syntax in this list works, but the remaining ones give the following error or a similar one:
>> d = fdesign.nyquist('tw,ast')
??? Error using ==> fdesign.nyquist.nyquist
The first input to fdesign.nyquist must be a scalar number.

Best Answer

This bug has been fixed in Release 14 Service Pack 3 (R14SP3). For previous product releases, read below for any possible workarounds:
This has been verified as an error in the documentation for FDESIGN.NYQUIST in the Filter Design Toolbox. The documentation should read as follows:
d = fdesign.nyquist
d = fdesign.nyquist(l, spectype)
d = fdesign.nyquist(l, spectype,specvalue1,specvalue2, ...)
d = fdesign.nyquist(l, 'tw,ast')
d = fdesign.nyquist(...,fs)
d = fdesign.nyquist(...,magunits)
where l is the Band.