Symbolic Variables, Expressions, Functions, and Preferences
Symbolic Math Toolbox™ introduces a special data type — symbolic objects. This data type includes symbolic numbers, symbolic variables, symbolic expressions, and symbolic functions. It also includes vectors, matrices, and multidimensional arrays of symbolic numbers, variables, expressions, and functions. Using symbolic objects in computations indicates that MATLAB® must perform these computations analytically instead of numerically. Symbolic computations are exact and are not prone to round-off errors. For more details about symbolic objects, see Use Symbolic Objects to Represent Mathematical Objects. For a quick guide on creating symbolic variables, expressions, and functions, see Create Symbolic Numbers, Variables, and Expressions and Create Symbolic Functions.
Functions
Topics
- Create Symbolic Numbers, Variables, and Expressions
Use symbolic values and variables to perform analytical calculations.
- Create Symbolic Functions
Use symbolic functions that accept symbolic inputs for analytical calculations.
- Create Symbolic Matrices
Use matrices containing symbolic values.
- Create Symbolic Matrix Variables
Use symbolic matrix variables.
- Use Symbolic Objects to Represent Mathematical Objects
Use symbolic objects to represent mathematical objects.
- Find Symbolic Variables in Expressions, Functions, and Matrices
Find variables in symbolic expressions.
- Choose syms or sym Function
Choose
syms
orsym
function. - Change Output Format of Symbolic and Variable-Precision Arithmetic
Change output format of symbolic and variable-precision arithmetic.
- Change Output Display Format of Symbolic Results in the Live Editor
Modify output of symbolic results.
- Add Subscripts, Superscripts, and Accents to Symbolic Variables in the Live Editor
Add suffixes to symbolic variables.
- Copy and Paste Symbolic Output in Live Editor
Copy and paste symbolic output.