Skip to content

bin2dec

strings · scripts/strings/bin2dec.m

: d = bin2dec (s)

Read strings of zeros and ones as binary numbers.

Rows of a char matrix, or members of a cellstr, each give one entry of the column vector d. Blanks are skipped; a string with any other character yields NaN.