bin2dec — integer corresponding to a binary form
y=bin2dec(str)
a string or a vector/matrix of strings containing only characters '1' and '0'
a scalar or a vector/matrix of positives integers
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)