double
Converts a variable to double precision type.
📝Syntax
D = double(V)
📥Input Arguments
Parameter Description
V a variable.
📤Output Arguments
Parameter Description
D a double.
📄Description

double(V) converts to the double-precision type.

💡Examples
double('Nelson')
A = single(pi)
B = double(A)
B - A
A = ["3.134", "NaN"; "Inf", "-5"];
B = double(A)
🔗See Also
charsinglenumeric types
🕔Version History
Version Description
1.0.0 initial version
Edit this page on GitHub