str2double
Converts a string to double.
Syntax
res = str2double(str)
Input argument
str - a cell of strings, string array or a string.
Output argument
res - a double
Description
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.
Example
See also
History
Version | Description |
---|---|
1.0.0 | initial version |
Author
Allan CORNET
Last updated