matlab遇到的问题a=214.06;b=364.06;c=300;d=300;e=0.0862*pi;f=30x=0:pi/30:2*piA=2*c*a*sin(x)-2*d*c*sin(e)B=2*a*c*cos(x)-2*d*c*cos(e)C=b*b-d*d-a*a-c*c+2*d*a*cos(x)*cos(e)+2*a*d*sin(e)*sin(x)D=2*a*b*sin(x)-2*d*b*sin(e)E=2*a*b*cos(x)-2*d*b*cos(e)F=b*

来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/09 10:38:20
matlab遇到的问题a=214.06;b=364.06;c=300;d=300;e=0.0862*pi;f=30x=0:pi/30:2*piA=2*c*a*sin(x)-2*d*c*sin(e)B=

matlab遇到的问题a=214.06;b=364.06;c=300;d=300;e=0.0862*pi;f=30x=0:pi/30:2*piA=2*c*a*sin(x)-2*d*c*sin(e)B=2*a*c*cos(x)-2*d*c*cos(e)C=b*b-d*d-a*a-c*c+2*d*a*cos(x)*cos(e)+2*a*d*sin(e)*sin(x)D=2*a*b*sin(x)-2*d*b*sin(e)E=2*a*b*cos(x)-2*d*b*cos(e)F=b*
matlab遇到的问题
a=214.06;b=364.06;c=300;d=300;e=0.0862*pi;f=30
x=0:pi/30:2*pi
A=2*c*a*sin(x)-2*d*c*sin(e)
B=2*a*c*cos(x)-2*d*c*cos(e)
C=b*b-d*d-a*a-c*c+2*d*a*cos(x)*cos(e)+2*a*d*sin(e)*sin(x)
D=2*a*b*sin(x)-2*d*b*sin(e)
E=2*a*b*cos(x)-2*d*b*cos(e)
F=b*b+d*d+a*a-c*c-2*d*a*cos(x)*cos(e)-2*a*d*sin(e)*sin(x)
z=2*atan((D+sqrt(D.^2+E.^2-F.^2))./(E-F))
y=2*atan((A+sqrt(A.^2+B.^2-C.^2))./(B-C))
w=f*a*sin(x-z)./(c*sin(y-z))
q=-f*a*sin(x-y)./(b*sin(z-y))
u=(f*f*a*cos(x-z)+q*q*b-w*w*a*cos(y-z))./(c*sin(y-z))
plot(x,u);
结果是
Error using ==> mtimes
Inner matrix dimensions must agree.
Error using ==> mtimes
Inner matrix dimensions must agree.
Error using ==> mtimes
Inner matrix dimensions must agree.
求高手指教修改!

matlab遇到的问题a=214.06;b=364.06;c=300;d=300;e=0.0862*pi;f=30x=0:pi/30:2*piA=2*c*a*sin(x)-2*d*c*sin(e)B=2*a*c*cos(x)-2*d*c*cos(e)C=b*b-d*d-a*a-c*c+2*d*a*cos(x)*cos(e)+2*a*d*sin(e)*sin(x)D=2*a*b*sin(x)-2*d*b*sin(e)E=2*a*b*cos(x)-2*d*b*cos(e)F=b*

u=(f*f*a*cos(x-z)+q.*q*b-w.*w*a.*cos(y-z))./(c*sin(y-z));

%    q、w、a后均要加点