bin2num
Convert two's complement binary string to number using quantizer
      object
Syntax
Description
y = bin2num(q,b)b to a numeric array
          y using the properties of the quantizer object
          q.
If b is a cell array containing binary strings, then
          y will be a cell array of the same dimension containing numeric
        arrays.
[y1,y2,…] =
          bin2num(q,b1,b2,…) converts the
        binary character vectors b1, b2, … to numeric arrays
          y1, y2, ….
Examples
Input Arguments
Tips
- bin2numand- num2binare inverses of one another. Note that- num2binalways returns the binary representations in a column.
Algorithms
- The fixed-point binary representation is two's complement. 
- The floating-point binary representation is in IEEE® Standard 754 style. 
- If there are fewer binary digits than are necessary to represent the number, then fixed-point zero-pads on the left, and floating-point zero-pads on the right. 
Version History
Introduced before R2006a