【发布时间】:2011-07-14 00:01:30
【问题描述】:
我是 Matlab 的新手。如何使用符号工具箱计算矩阵的逆? 在我的矩阵中有一个拉普拉斯变量“s”。
【问题讨论】:
标签: matlab symbolic-math matrix-inverse
我是 Matlab 的新手。如何使用符号工具箱计算矩阵的逆? 在我的矩阵中有一个拉普拉斯变量“s”。
【问题讨论】:
标签: matlab symbolic-math matrix-inverse
syms('s', 'x'); % You declare the symbols `s' and `x' this way.
M = [exp(-s)*x 1; 0 exp(-s)*sin(x)]; % This is a sample matrix
M*inv(M) % inv() gives you the inverse
【讨论】: