| Filter Design Toolbox | ![]() |
Test and return whether a quantizer is floating point
Syntax
Description
res = isfloat(q)
returns res = 1 (logical true) when q is a floating-point quantizer. When q is not floating point, isfloat 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 = isfloat(q) res = 1 q = quantizer('ufixed'); % Create a fixed-point quantizer res = isfloat(q) res = 0
See Also
| isfixed | isnone | ![]() |
Learn more about the latest releases of MathWorks products: |
| © 1994-2009 The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |