MATLAB Function Reference Previous page   Next Page
bin2dec

Convert binary number string to decimal number

Syntax

Description

bin2dec(binarystr) interprets the binary string binarystr and returns the equivalent decimal number.

bin2dec ignores any space (' ') characters in the input string.

Examples

Binary 010111 converts to decimal 23:

Because space characters are ignored, this string yields the same result:

See Also

dec2bin


Previous page  bicgstab binary (ftp) Next page

© 1994-2005 The MathWorks, Inc.