马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?我要加入
x
??? Error: File: springdampmass.m Line: 78 Column: 29
The expression to the left of the equals sign is not a valid target for an assignment.
Error in ==> funfun\private\odearguments at 110
f0 = feval(ode,t0,y0,args{:}); % ODE15I sets args{1} to yp0.
Error in ==> ode45 at 171
[neq, tspan, ntspan, next, t0, tfinal, tdir, y0, f0, odeArgs, ...
Error in ==> Singledegree at 3
[t,y]=ode45(@springdampmass,[0 20],y0);
请各位帮忙看看,谢谢!
springdampmass.txt
(2.88 KB, 下载次数: 0)
singledegree.txt
(179 Bytes, 下载次数: 0)
另
[url=][/url]
| 这么写对吗?
Fm=@u*m*9.8.*(Y(2)~=0|| Y(2)=0&&abs(k*Y(1)-alpha*Y(3)- Dp)>fmax)+...
[k*Y(1)-alpha*Y(3)- Dp*Ap].* (Y(2)=0&abs(k*Y(1)-alpha*Y(3)- Dp)<=fmax)
| Dp*Ap是fg,k*Y(1)是k*x,alpha*Y(3)是fe
|
|
|