This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

Conversion Between Symbolic and Numeric

Convert symbolic data to numerics or character vectors, 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.


char Convert symbolic objects to character vectors
cell2sym Convert cell array to symbolic array
double Convert symbolic values to MATLAB double precision
int8, int16, int32, int64 Convert symbolic matrix to signed integers
poly2sym Create symbolic polynomial from vector of coefficients
single Convert symbolic matrix to single precision
sym Create symbolic variables, expressions, functions, matrices
sym2cell Convert symbolic array to cell array
sym2poly Extract vector of all numeric coefficients, including zeros, from symbolic polynomial
symfun Create symbolic functions
uint8, uint16, uint32, uint64 Convert symbolic matrix to unsigned integers
vpa Variable-precision arithmetic


Numeric to Symbolic Conversion

Convert floating-point numbers to exact symbolic numbers.

Increase Precision of Numeric Calculations

Increase precision arbitrarily with variable-precision arithmetic.

Was this topic helpful?