下面这个matlab程序错在哪里呀,为什么只能出来一个图像?v=dsolve('m*D2v+2*k*v*Dv=0','v(0)=0,Dv(0)=g','t')x=dsolve('m*g-k*(Dx)^2=m*D2x','x(0)=0,Dx(0)=0,D2x(0)=g','t')m=75;k=0.22;g=9.8t=0:0.5:30;v =tanh(t.*(g*m*k)^(1/2)/m)*(g*m*k)^(1/
来源:学生作业帮助网 编辑:作业帮 时间:2024/11/06 03:34:12
下面这个matlab程序错在哪里呀,为什么只能出来一个图像?v=dsolve('m*D2v+2*k*v*Dv=0','v(0)=0,Dv(0)=g','t')x=dsolve('m*g-k*(Dx)^2=m*D2x','x(0)=0,Dx(0)=0,D2x(0)=g','t')m=75;k=0.22;g=9.8t=0:0.5:30;v =tanh(t.*(g*m*k)^(1/2)/m)*(g*m*k)^(1/
下面这个matlab程序错在哪里呀,为什么只能出来一个图像?
v=dsolve('m*D2v+2*k*v*Dv=0','v(0)=0,Dv(0)=g','t')
x=dsolve('m*g-k*(Dx)^2=m*D2x','x(0)=0,Dx(0)=0,D2x(0)=g','t')
m=75;
k=0.22;
g=9.8
t=0:0.5:30;
v =tanh(t.*(g*m*k)^(1/2)/m)*(g*m*k)^(1/2)/k
%x=(m/k)*log(cosh(t.*(k*g/m)^1/2))
plot(t,v),gtext('v(t)')
hold on
plot(t,x),gtext('x(t)')
下面这个matlab程序错在哪里呀,为什么只能出来一个图像?v=dsolve('m*D2v+2*k*v*Dv=0','v(0)=0,Dv(0)=g','t')x=dsolve('m*g-k*(Dx)^2=m*D2x','x(0)=0,Dx(0)=0,D2x(0)=g','t')m=75;k=0.22;g=9.8t=0:0.5:30;v =tanh(t.*(g*m*k)^(1/2)/m)*(g*m*k)^(1/
v=dsolve('m*D2v+2*k*v*Dv=0','v(0)=0,Dv(0)=g','t')
x=dsolve('m*g-k*(Dx)^2=m*D2x','x(0)=0,Dx(0)=0,D2x(0)=g','t')
m=75;
k=0.22;
g=9.8
t=0:0.5:30;
v =tanh(t.*(g*m*k)^(1/2)/m)*(g*m*k)^(1/2)/k
x=(m/k)*log(cosh(t.*(k*g/m)^1/2))
figure
plot(t,v),gtext('v(t)')
figure
plot(t,x),gtext('x(t)')