MATLAB含有三角函数矩阵的方程求解

请问下面这个程序哪里有问题,要求解dlamd2,不知道哪里有问题解不出来,请各位高手指点一下
Y1=[ 0.9997,0.0034,0.026;0,0.9915,-0.1305;-0.0262,- 0.1304,0.9911];
syms dlamd2;
KR1=[184.0763*cosd(161.0109-dlamd2),184.0763*sind(161.0109-dlamd2),87.9403];
KR=Y1*KR1; %%结果为一行3列矩阵
Kt1=[-172.541253363747 -173.516884901048 -174.438966295171 -175.307216671191 -176.121371551632 -176.881182937031 -177.586419381479 -178.236866063123 -178.832324849604 -179.372614358407 -179.857570012112 -180.287044088531 -180.660905765700 -180.979041161729 -181.241353369495 -181.447762486159 -181.598205637504 -181.692636997089 -181.731027800207 -181.713366352647 -181.639658034258 -181.509925297307 -181.324207659643 -181.082561692657 -180.785061004052 -180.431796215419 -180.022874934636 -179.558421723084 -179.038578057713 -178.463502287939];%%一行30列矩阵
Kt2=[44.8888789707568 41.8508892177787 38.7966559905670 35.7271096381498 32.6431851740813 29.5458219916280 26.4359635776201 23.3145572250563 20.1825537445494 17.0409071747000 13.8905744914870 10.7325153167637 7.56769162594759 4.39706745499313 1.22160860673735 -1.95771764329319 -5.13994284152393 -8.32409765133256 -11.5092121483184 -14.6943161157508 -17.8784393401065 -21.0606119066061 -24.2398644946593 -27.4152286731298 -30.5857371953283 -33.7504242936457 -36.9083259737346 -40.0584803081522 -43.1999277293718 -46.3317113220771]; %%一行30列矩阵
Kt3=[99.1568955835643 98.7824844558560 98.4045325743461 98.0231550668389 97.6384681046179 97.2505888670581 96.8596355059328 96.4657271094231 96.0689836658424 95.6695260270870 95.2674758718233 94.8629556684233 94.4560886376596 94.0469987151713 93.6358105137117 93.2226492851901 92.8076408825192 92.3909117212787 91.9725887412082 91.5527993675396 91.1316714721828 90.7093333347743 90.2859136036020 89.8615412564178 89.4363455611496 89.0104560365253 88.5840024126195 88.1571145913375 87.7299226068448 87.3025565859582]; %%一行30列矩阵
for i=1:30
Q=solve(‘(KR(1)-Kt1(i))^2+(KR(2)-Kt2(i))^2+(KR(3)-Kt3(i))^2+1226’);
Q(i)=double(Q);
end

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问