解方程时,突然中断,不知什么原因,请教matlab高手,程序如下syms V Q2 p r2 a0 i23 r3 u x2 y2 z2 Q3 x3 y3; u=atan(-r2.*i23./(r2.*cos(Q2)+a0));x2=p.*cos(V)+r2;y2=p.*cos(u).*sin(V);z2=p.*sin(u).*sin(V);Q3=Q2/i23; x3=x2.*cos(Q3).*cos(Q2)-
来源:学生作业帮助网 编辑:作业帮 时间:2024/11/17 12:35:34
解方程时,突然中断,不知什么原因,请教matlab高手,程序如下syms V Q2 p r2 a0 i23 r3 u x2 y2 z2 Q3 x3 y3; u=atan(-r2.*i23./(r2.*cos(Q2)+a0));x2=p.*cos(V)+r2;y2=p.*cos(u).*sin(V);z2=p.*sin(u).*sin(V);Q3=Q2/i23; x3=x2.*cos(Q3).*cos(Q2)-
解方程时,突然中断,不知什么原因,请教matlab高手,程序如下
syms V Q2 p r2 a0 i23 r3 u x2 y2 z2 Q3 x3 y3;
u=atan(-r2.*i23./(r2.*cos(Q2)+a0));
x2=p.*cos(V)+r2;
y2=p.*cos(u).*sin(V);
z2=p.*sin(u).*sin(V);
Q3=Q2/i23;
x3=x2.*cos(Q3).*cos(Q2)-y2.*cos(Q3).*sin(Q2)-z2.*sin(Q3)+a0.*cos(Q3);
y3=-x2.*sin(Q3).*cos(Q2)+y2.*sin(Q3).*sin(Q2)-z2.*cos(Q3)-a0.*sin(Q3);
f=x2.*sin(Q2)+y2.*cos(Q2);
g=x3^2+y3^2-r3^2;
[V Q2]=solve(f,g);
V=simplify(V),Q2=simplify(Q2)
解方程时,突然中断,不知什么原因,请教matlab高手,程序如下syms V Q2 p r2 a0 i23 r3 u x2 y2 z2 Q3 x3 y3; u=atan(-r2.*i23./(r2.*cos(Q2)+a0));x2=p.*cos(V)+r2;y2=p.*cos(u).*sin(V);z2=p.*sin(u).*sin(V);Q3=Q2/i23; x3=x2.*cos(Q3).*cos(Q2)-
一切正常啊,只是有一个警告而已
Warning: The solutions are parametrized by the symbols:
表达式有点长.