用符号工具箱在matlab中反转矩阵

我是Matlab的新手。如何使用符号工具箱计算矩阵的逆矩阵? 在我的矩阵中有一个laplace变量“s”。     
已邀请:
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
    

要回复问题请先登录注册