Skip to content

str2double

builtin · libnexusinterp/corefcn/strfns-proprietary.cc

: d = str2double (s)

Convert text to double precision numbers.

s may be a string, a char matrix (one number per row) or a cell array of strings. Real and complex notation, signs, exponents, thousands separators, Inf and NaN are understood; text that cannot be parsed yields NaN, as does any non-text input.