Syntax
y=bin2dec(str)
Arguments
- str
a matrix of strings containing only characters '1' and '0'
- y
a matrix of doubles, positive integer values
Description
Given str
a binary string, this function returns
y
the decimal number whose the binary representation is
given by str
( y
and
str
have the same size).
Examples
See also
Report an issue | ||
<< base2dec | Radix conversions | dec2base >> |