Documentation

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.

Symbolic Variables, Expressions, Functions, and Preferences

Create symbolic variables, expressions, functions, and set 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 a quick guide on creating symbolic variables, expressions, and functions, see Create Symbolic Numbers, Variables, and Expressions and Create Symbolic Functions.

Functions

foldCombine (fold) vector using function
piecewiseConditionally defined expression or function
symCreate symbolic variables, expressions, functions, matrices
str2symEvaluate string representing symbolic expression
symfunCreate symbolic functions
symsCreate symbolic variables and functions
symvarFind symbolic variables in symbolic expression, matrix, or function
argnamesInput variables of symbolic function
childrenSubexpressions or terms of symbolic expression
formulaMathematical expression defining symbolic function
hasCheck if expression contains particular subexpression
dispDisplay symbolic input
displayDisplay symbolic input
prettyPrettyprint symbolic expressions
isfiniteCheck whether symbolic array elements are finite
isinfCheck whether symbolic array elements are infinite
isnanCheck whether symbolic array elements are NaNs
funtoolFunction calculator
symprefSet symbolic preferences

Topics

Create Symbolic Numbers, Variables, and Expressions

Use symbolic values and variables.

Create Symbolic Functions

Use symbolic functions that accept symbolic inputs, such as f(x,y).

Create Symbolic Matrices

Use matrices containing symbolic values.

Find Symbolic Variables in Expressions, Functions, Matrices

Find variables in symbolic expressions.

Was this topic helpful?