str2double
- :
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,
InfandNaNare understood; text that cannot be parsed yieldsNaN, as does any non-text input.