Filter Design Toolbox    
bin2num

Convert a two's complement binary string to a number

Syntax

Description

y = bin2num(q,b) uses the properties of quantizer q to convert binary string b to numeric array y. When b is a cell array containing binary strings, y will be a cell array of the same dimension containing numeric arrays. The fixed-point binary representation is two's complement. The floating-point binary representation is in IEEE Standard 754 style.

bin2num and num2bin are inverses of one another. Note that num2bin always returns columnwise.

Examples

Create a quantizer and an array of numeric strings. Convert the numeric strings to binary strings, then use bin2num to convert them back to numeric strings.

bin2num performs the inverse operation of num2bin.

See Also
num2bin


  allpassshiftc ca2tf 

Learn more about the latest releases of MathWorks products:

 © 1994-2009 The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS