怎么用matlab求一个矩阵的逆矩阵

2024-11-15 06:06:59
推荐回答(2个)
回答1:

给例:
>> syms a b c d (定义变量)
>> A=[a,b;c,d] (定义矩阵)
A =
[ a, b]
[ c, d]
>> inv(A) (求矩阵逆)
ans = (结)
[ d/(a*d - b*c), -b/(a*d - b*c)]
[ -c/(a*d - b*c), a/(a*d - b*c)]

回答2:

inv(A)这个是求逆函数,或者直接/A