符号变量、表达式、函数和预设项
Symbolic Math Toolbox™ 引入了“符号对象”这种特殊的数据类型。此数据类型包括符号数、符号变量、符号表达式和符号函数。它还包括符号数、变量、表达式和函数的向量、矩阵和多维数组。在计算中使用符号对象意味着 MATLAB® 必须以解析方式而非数值方式执行这些计算。符号计算精确,不易出现舍入误差。有关符号对象的详细信息,请参阅Use Symbolic Objects to Represent Mathematical Objects。有关创建符号变量、表达式和函数的快速指南,请参阅Create Symbolic Numbers, Variables, and Expressions和创建符号函数。
函数
主题
- Create Symbolic Numbers, Variables, and Expressions
Use symbolic values and variables to perform 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.