FUNCTION REFERENCE

base2dec

Text in any base to decimal.

Text in any base to decimal.

Syntax

d = base2dec(s, base)

Converts each row of a character array. base is an integer from 2 to 36 or a

character vector of symbols; invalid characters cause an error.

Example

base2dec('101', 3)   % 10

Differences 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.