|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?我要加入
x
[x0,y0,z0]=solve('a*(x0-x1)+b*(y0-y1)+c*(z0-z1)=0','(x0-x1)^2+(y0-y1)^2+(z0-z1)^2=(x0-x2)^2+(y0-y2)^2+(z0-z2)^2','(x0-x1)^2+(y0-y1)^2+(z0-z1)^2=(x0-x3)^2+(y0-y3)^2+(z0-z3)^2')
这是求空间一圆柱的截面上 圆的中心中标
a,b,c是已经求出的法向量 加上所测得的圆上3个点的坐标
三个方程三个未知数 应该能求出来的呀
为什么matlab 算出的结果乱七八糟的、、、、、、、...
x0 =
[ (a*x3+(-2*b^2*y0*y1-2*c^2*z0*z1+b^2*y0^2+b^2*y1^2+c^2*z0^2+c^2*z1^2+2*b*y0*c*z0-2*b*y0*c*z1-2*b*y1*c*z0+2*b*y1*c*z1-2*y0*y1*a^2+y1^2*a^2-2*z0*z1*a^2+z1^2*a^2+2*y0*y3*a^2-y3^2*a^2+2*z0*z3*a^2-z3^2*a^2)^(1/2))/a]
[ (a*x3+(-2*b^2*y0*y1-2*c^2*z0*z1+b^2*y0^2+b^2*y1^2+c^2*z0^2+c^2*z1^2+2*b*y0*c*z0-2*b*y0*c*z1-2*b*y1*c*z0+2*b*y1*c*z1-2*y0*y1*a^2+y1^2*a^2-2*z0*z1*a^2+z1^2*a^2+2*y0*y3*a^2-y3^2*a^2+2*z0*z3*a^2-z3^2*a^2)^(1/2))/a]
[ (a*x3-(-2*b^2*y0*y1-2*c^2*z0*z1+b^2*y0^2+b^2*y1^2+c^2*z0^2+c^2*z1^2+2*b*y0*c*z0-2*b*y0*c*z1-2*b*y1*c*z0+2*b*y1*c*z1-2*y0*y1*a^2+y1^2*a^2-2*z0*z1*a^2+z1^2*a^2+2*y0*y3*a^2-y3^2*a^2+2*z0*z3*a^2-z3^2*a^2)^(1/2))/a]
[ (a*x3-(-2*b^2*y0*y1-2*c^2*z0*z1+b^2*y0^2+b^2*y1^2+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