Filter Design Toolbox    
setbits

Set all data format property values for quantized filters and quantized FFTs

Syntax

setbits(F,fmt)

Description

When Hq is a floating-point quantized filter, setbits(Hq,format) sets all data format properties for the quantized filter Hq to the values specified by format. In this case, format is a two-element vector of integers whose entries are described as follows:

When Hq is a fixed-point quantized filter, setbits(Hq,format) sets the properties CoefficientFormat, InputFormat, and OutputFormat to the value specified by format, whereas the property values SumFormat and ProductFormat are specified by 2*format. In this case, format is a two-element vector of integers whose entries are described as follows:

setbits(F,fmt) sets all data format property values for quantized FFT F.

When F is a fixed-point quantized FFT, fmt = [w, f] where w is the word length and f is the fraction length. The twiddle, input, and output formats are set to [w, f]. The sum and product formats are set to [2w, 2f].

When F is a floating-point quantized FFT, fmt = [w, e] where w is the word length and e is the exponent length. All formats are set to [w, e].

If the specified formats exceed the maximum allowed, they are set to the maximum.

Examples

Create a quantized filter with default data format property values. Set the CoefficientFormat, InputFormat, and OutputFormat property values for a 24-bit word length, and a 23-bit fraction length, while setting the SumFormat and ProductFormat property values to a 48-bit word length and a 46-bit fraction length.

See Also
get, qfilt, set


  set sos 

Learn more about the latest releases of MathWorks products:

 © 1994-2009 The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS