FUNCTION REFERENCE
bin2dec
Binary text to decimal.
Binary text to decimal.
Syntax
d = bin2dec(s)Converts each row of a character array to a number. Spaces are ignored; other
characters that are not 0 or 1 cause an error. Empty text returns a 0-by-0
array; a row containing only spaces returns 0.
Example
bin2dec('101') % 5Differences from MATLAB: Character array input only; cell arrays are not
supported yet.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.