FUNCTION REFERENCE
double
Convert to double.
Convert to double.
Syntax
double(X)Converts logical values to 0 and 1 and characters to their UTF-16 codes, keeping the shape. Double and complex input is returned unchanged.
Example
double(true) % 1Example
double('Hi') % [72 105]String inputs are parsed element-wise as numbers; nonnumeric or missing elements become NaN.
Example
double(["3.5" "bad"])Differences from MATLAB: other container classes are not converted.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.