| Symbolic Math Toolbox | ![]() |
Convert symbolic matrix to MATLAB numeric form
Syntax
Description
double(S) converts the symbolic object S to a numeric object. If S is a symbolic constant or constant expression, double returns a double-precision floating-point number representing the value of S. If S is a symbolic matrix whose entries are constants or constant expressions, double returns a matrix of double precision floating-point numbers representing the values of S's entries.
Examples
double(sym('(1+sqrt(5))/2')) returns 1.6180.
See Also
| digits | dsolve | ![]() |