num2int
Convert number to signed integer using quantizer
      object
Syntax
Description
y = num2int(q,x)x to output y containing
        integers using the data type properties specified by the fixed-point
          quantizer object q. If x is a
        cell array containing numeric matrices, then y will be a cell array of
        the same dimension.
[y1,y2,…] =
          num2int(q,x1,x2,…) uses
          q to convert numeric values x1,
          x2,… to integers y1, y2,….
Examples
Input Arguments
Algorithms
- When - qis a fixed-point- quantizerobject, f is equal to- fractionlength(- q), and x is numeric:
- num2intis meaningful only for fixed-point- quantizerobjects. When- qis a floating-point- quantizerobject, x is returned unchanged (y = x).
- yis returned as a double, but the numeric values will be integers, also known as floating-point integers or flints.
Version History
Introduced before R2006a