簡體   English   中英

具有符號工具箱的Matlab中矩陣的逆

[英]Inverse of matrix in matlab with symbolic toolbox

我是Matlab的新手。 如何使用符號工具箱計算矩陣的逆矩陣? 在我的矩陣中有一個拉普拉斯變量“ 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

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM