Main Content

Conversion Between Symbolic and Numeric

Convert symbolic data to numerics, convert numerics to symbolic objects

Symbolic Math Toolbox™ lets you convert data between symbolic and commonly used MATLAB® data types. You can also perform numeric computations with high precision using variable-precision arithmetic.


cell2symConvert cell array to symbolic array
doubleConvert symbolic values to MATLAB double precision
poly2symCreate symbolic polynomial from vector of coefficients
symCreate symbolic variables, expressions, functions, matrices
sym2cellConvert symbolic array to cell array
sym2polyExtract vector of all numeric coefficients, including zeros, from symbolic polynomial
symfunCreate symbolic functions
vpaVariable-precision arithmetic (arbitrary-precision arithmetic)