<< startsWith | String type | strcat >> |
res = str2double(str) |
a cell of strings, string array or a string.
a double
str2double converts any complex number as a whole into a complex numeric field, converting the real and imaginary parts to the specified numeric type.
If str2double cannot convert string to a number, then it returns a Not An Number value.
R = str2double('2.6 + 3j')
R = str2double('+NaNi')
R = str2double({'2.71' '3.1415'})
R = str2double(["2.71" "3.1415"])
Version | Description |
---|---|
1.0.0 | initial version |
Allan CORNET