Files
notes_estom/Matlab/教程/MATLAB10.md
yinkanglong_lab 30f583d779 项目经历整理
2021-04-06 23:30:37 +08:00

34 lines
1.5 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# MATLAB的符号运算
## > MATLAB的符号运算
***
* **符号计算基础**
1. 符号变量和符号常量``` a = sym('a'),syms b,c = sym('3')
2. 符号表达式。生成方式声明符号表达式中所有的变量为符号变量。或者直接使用sym函数生成一个符号表达式f = sym(字符串)。一些满足符号表达式的字符串能够自动转换为符号表达式
3.
* **符号函数**
1. simplify多项式规则化简
2. simple多种规则对多项式化简
3. sym()符号表达式和数值的转换使用eval()或者numeric函数。
4. 因式分解函数factor(化简) , expand展开 , collect合并同类项
5. 符号矩阵。构建方式与数值矩阵相同,符号矩阵的运算同数值矩阵相同。
6. 符号矩阵的转置transposedeterm '是共轭转置
1. subsf1,3使用3 代替原函数中的自变量,得到最终的结果。
2. 符号极限,符号微分,符号积分
3. limit(y,0)计算y函数在零点的值
4. diff(y,3)微分求解
5. int(y3)求y3的积分函数
6. int(y4,1,2)对y4从一道二积分
* **符号级数**
1. symsum符号级数求和
symsum函数名臣针对变量起始截止
2. Taylor(f函数名称针对的变量展开项数展开的函数值)
* **符号方程求解**
1. 符号代数方程
2. solve(方程表达式)
3. 符号方程组
4. [x,y] = solve('x + y',时间,'x和y是... ...')
5. 符号微分方程组
6. dsolve