找到一个方法,跟各位分享下,如果有更好的办法,希望各位大侠指教,下面是我的解决办法:
0 S" K& P. I( r+ c- h8 s3 ?$ Vcos(sym(pi/2)),这样运行后结果就是零了,之前的矩阵结果是:T40 =
4 p) L9 |" N% T, ?2 g1 {1 @
/ T8 X" Z6 o, X' I[ (2^(1/2)*3^(1/2)*sin(s1))/3, (3^(1/2)*sin(s1)^2)/3 - cos(s1)^2, cos(s1)*sin(s1) + (3^(1/2)*cos(s1)*sin(s1))/3, a1*cos(s1) - a3*((3^(1/2)*sin(s1)^2)/3 - cos(s1)^2) + d4*(cos(s1)*sin(s1) + (3^(1/2)*cos(s1)*sin(s1))/3) + (2^(1/2)*3^(1/2)*d3*sin(s1))/3]' `8 U( g7 S' j8 G5 Y/ j
[ -(2^(1/2)*3^(1/2)*cos(s1))/3, - cos(s1)*sin(s1) - (3^(1/2)*cos(s1)*sin(s1))/3, sin(s1)^2 - (3^(1/2)*cos(s1)^2)/3, d4*(sin(s1)^2 - (3^(1/2)*cos(s1)^2)/3) + a1*sin(s1) + a3*(cos(s1)*sin(s1) + (3^(1/2)*cos(s1)*sin(s1))/3) - (2^(1/2)*3^(1/2)*d3*cos(s1))/3]
2 V% X9 o' q S2 j& V1 J6 W[ 3^(1/2)/3, -(2^(1/2)*3^(1/2)*sin(s1))/3, -(2^(1/2)*3^(1/2)*cos(s1))/3, (3^(1/2)*d3)/3 - (2^(1/2)*3^(1/2)*d4*cos(s1))/3 + (2^(1/2)*3^(1/2)*a3*sin(s1))/3]1 C v& ?% m$ V% w$ ]) W
[ 0, 0, 0, 1] |