假设A、B、C、D为3 ×3的矩阵
s=solve(' x*B(1,1)+y*C(1,1)+z*D(1,1)=A(1,1) ',' x*B(1,2)+y*C(1,2)+z*D(1,2)=A(1,2) ',' x*B(1,3)+y*C(1,3)+z*D(1,3)=A(1,3)','x,y,z');
result=[s.x,,s.y,s.z]
假设A、B、C、D为3 ×3的矩阵
s=solve(' x*B(1,1)+y*C(1,1)+z*D(1,1)=A(1,1) ',' x*B(1,2)+y*C(1,2)+z*D(1,2)=A(1,2) ',' x*B(1,3)+y*C(1,3)+z*D(1,3)=A(1,3)','x,y,z');
result=[s.x,,s.y,s.z]