Convert s from a string of digits of base b into an integer.
base2dec ("11120", 3) 123If s is a matrix, returns a column vector with one value per row of s. If a row contains invalid symbols then the corresponding value will be NaN. Rows are right-justified before converting so that trailing spaces are ignored.
If b is a string, the characters of b are used as the symbols for the digits of s. Space (' ') may not be used as a symbol.
base2dec ("yyyzx", "xyz") 123