Symbolic Variables, Expressions, Functions, and Preferences
符号数学工具箱™ 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, seeSymbolic Objects to Represent Mathematical Objects. For a quick guide on creating symbolic variables, expressions, and functions, seeCreate Symbolic Numbers, Variables, and Expressions和Create Symbolic Functions.
Functions
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.
- Create Symbolic Matrix Variables
Use symbolic matrix variables.
- Symbolic Objects to Represent Mathematical Objects
Use symbolic objects to represent mathematical objects.
- 在表达式,函数,矩阵中找到符号变量
在符号表达式中查找变量。
- Choose syms or sym Function
Choose
syms
或者sym
function. - 改变输出符号结果的显示格式n the Live Editor
修改符号结果的输出。
- 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.