MATLAB求带符号的矩阵的逆
作者:互联网
syms a
syms b
B=[-sin(a) -sin(b)*cos(a) cos(b)*cos(a);cos(a) -sin(b)*sin(a),cos(b)*sin(a);0 cos(b) sin(b)];
inv(B)
inv(B)*B;
检查是否是正确的,只需把syms代入具体的值:
a=pi/2
b=pi/3
B=[-sin(a) -sin(b)*cos(a) cos(b)*cos(a);cos(a) -sin(b)*sin(a),cos(b)*sin(a);0 cos(b) sin(b)];
inv(B)
inv(B)*B
标签:cos,带符号,inv,矩阵,syms,MATLAB,pi,sin 来源: https://blog.csdn.net/qq_42928559/article/details/122683464