给例:>> 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)]
inv(A)这个是求逆函数,或者直接/A