str2double, double
Convert string to double-precision value in Stateflow chart
Description
converts the text in string X = str2double(str)str to a double-precision value.
In a chart that uses MATLAB® as the action language,
str2doublereturns a complex value.In a chart that uses C as the action language,
str2doublereturns a real value.
If str2double cannot convert the text to a
number, it returns a NaN value.
is
an alternative way to execute X = double(str)str2double(str) in charts that use
MATLAB as the action language.
Note
Stateflow® charts that use C as the action language support calling
double only with numeric
arguments.
Examples
Input Arguments
Limitations
This operator does not support the use of Stateflow structure fields or messages. For more information about structures in Stateflow, see Access Bus Signals.
Version History
Introduced in R2018b



