| Filter Design Toolbox | ![]() |
Test and return whether a quantizer is fixed point
Syntax
Description
res = isfixed(q)
returns res = 1 (logical true) when q is a fixed-point quantizer. When q is not fixed point, isfixed returns res = 0. When you develop programs that use one or more quantizers, you may find this function useful to determine the mode of a quantizer within your program, and respond to the returned value.
Examples
Demonstrate the results of testing both fixed-point and nonfixed-point quantizers:
q = quantizer('double'); % Create a floating-point quantizer res = isfixed(q) res = 0 q = quantizer('ufixed'); % Create a fixed-point quantizer res = isfixed(q) res = 1
See Also
| isfir | isfloat | ![]() |
Learn more about the latest releases of MathWorks products: |
| © 1994-2009 The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |