| Contents | Index |
The following properties of quantizer objects are always writable:
DataMode — Type of arithmetic used in quantization
Format — Data format of a quantizer object
OverflowMode — Overflow-handling mode
RoundMode — Rounding mode
See the Property Reference for more details about these properties, including their possible values.
For example, to create a fixed-point quantizer object with
The Format property value set to [16,14]
The OverflowMode property value set to 'saturate'
The RoundMode property value set to 'ceil'
type
q = quantizer('datamode','fixed','format',[16,14],... 'overflowmode','saturate','roundmode','ceil')
You do not have to include quantizer object property names when you set quantizer object property values.
For example, you can create quantizer object q from the previous example by typing
q = quantizer('fixed',[16,14],'saturate','ceil')
Note You do not have to include default property values when you construct a quantizer object. In this example, you could leave out 'fixed' and 'saturate'. |
![]() | Constructing quantizer Objects | Quantizing Data with quantizer Objects | ![]() |

Learn how to apply early verification to your development process through these technical resources.
How much time do you spend on testing to ensure implementation meets system-level requirements?
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |