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 MATLAB® numeric data types. You can also perform numeric computations with high precision using variable-precision arithmetic.

Functions

expand all

symCreate symbolic variables, expressions, functions, matrices
vpaVariable-precision arithmetic (arbitrary-precision arithmetic)
symfunCreate symbolic functions
subsSymbolic substitution
str2symEvaluate string representing symbolic expression
cell2symConvert cell array to symbolic array
sym2cellConvert symbolic array to cell array
poly2symCreate symbolic polynomial from vector of coefficients
doubleConvert symbolic values to MATLAB double precision
matlabFunctionConvert symbolic expression to function handle or file
sym2polyExtract vector of all numeric coefficients, including zeros, from symbolic polynomial

Topics