matlab题:可以怎么改?

学习 时间:2026-03-30 12:45:13 阅读:2997
matlab题:可以怎么改?一个质量为75kg的人在某一高度静止下落,空气阻力F与v的关系满足F=-k ,其中常数k=0.22kg/m,根据牛顿第二定律知,若令g=9.80m/ ,求下落过程中速度v(t)和位移x(t)的表达式,并画图.>> clear>> syms t v x>> v=dsolve('Dv=g-k*v^2/m','v(0)=0');>> x=int(v);>> m=75;>> g=9.8;>> k=0.22;>> t=0:0.5:30;>> v=subs(v);Error using ==> sym.subsElements of the substitution cell array must be of the same size.>>x=subs(x);Error using ==> sym.subsElements of the substitution cell array must be of the same size.>> plot(t,v)Error using ==> plotConversion to double from sym is not possible.>> plot(t,x)Error using ==> plotConversion to double from sym is not possible.

最佳回答

标致的泥猴桃

害怕的画笔

2026-03-30 12:45:13

clearv=dsolve('Dv=g-k*v^2/m','v(0)=0');x=int(v); m=75;g=9。8; k=0。22;T=0:0。5:30;for i=1:61 t=(i-1)/2; V(i)=subs(v);endplot(T,V)

最新回答共有2条回答

  • 粗暴的灯泡
    回复
    2026-03-30 12:45:13

    clearv=dsolve('Dv=g-k*v^2/m','v(0)=0');x=int(v); m=75;g=9。8; k=0。22;T=0:0。5:30;for i=1:61 t=(i-1)/2; V(i)=subs(v);endplot(T,V)

上一篇 左边一个山右边一个差念什么字?

下一篇 优美性、哲理性段落,100字左右