| Filter Design Toolbox | ![]() |
Syntax
q = quantizer q = quantizer('PropertyName1',PropertyValue1, ... ) q = quantizer(PropertyValue1, PropertyValue2, ... ) q = quantizer(a) q = quantizer(pn,pv) [qcoefficient,qinput,qoutput,qmultiplicand,qproduct,... qsum] = quantizer(F) [q1, q2, ...] = quantizer(F, format1, format2, ...)
Description
creates a quantizer with properties set to their default values.q = quantizer
uses property name/ property value pairs.q = quantizer('PropertyName1',PropertyValue1,...)
creates a quantizer with the listed property values. When two values conflict, q = quantizer(PropertyValue1,PropertyValue2,...)
quantizer sets the last property value in the list. Property values are unique; you can set the property names by specifying just the property values in the command.
where q = quantizer(a)
a is a structure whose field names are property names, sets the properties named in each field name with the values contained in the structure.
sets the named properties specified in the cell array of strings q = quantizer(pn,pv)
pn to the corresponding values in the cell array pv.
These are the quantizer property values, sorted by associated property name:
The default property values for a quantizer are
Along with the preceding properties, quantizers have read-only properties: 'max', 'min', 'noverflows', 'nunderflows', and 'noperations'. They can be accessed through quantizer/get or q.max, q.min, q.noverflows, q.nunderflows, and q.noperations, but they cannot be set. They are updated during the quantizer/quantize method, and are reset by the quantizer/reset method.
The following table lists the read-only quantizer properties:
[qcoefficient,qinput,qoutput,qmultilplicand,qproduct,qsum] =... returns property values associated with the quantized FFT
quantizer(F)
F for the twiddle factors, input, output, product, and sum quantizers.
returns quantizers [q1, q2,...] = quantizer(F, formatName1, formatName2,...)
q1, q2,..., associated with formatName1,formatName2,..., where format k is a string that can be one of 'twiddle', 'input', 'output', 'multiplicand', 'product', or 'sum'.
Examples
The following example operations are equivalent.
Setting quantizer properties by listing property values only in the command.
Using a structure a to set quantizer properties.
a.mode = 'fixed'; a.roundmode = 'ceil'; a.overflowmode = 'saturate'; a.format = [5 4]; q = quantizer(a);
Using property name and property value cell arrays pn and pv to set quantizer properties.
pn = {'mode', 'roundmode', 'overflowmode', 'format'}; pv = {'fixed', 'ceil', 'saturate', [5 4]}; q = quantizer(pn, pv)
Using property name/property value pairs to configure a quantizer.
| quantize | radix | ![]() |
Learn more about the latest releases of MathWorks products: |
| © 1994-2009 The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |