声振论坛

 找回密码
 我要加入

QQ登录

只需一步,快速开始

查看: 1018|回复: 1

[编程技巧] matlab程序调试求助

[复制链接]
发表于 2013-3-18 19:48 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?我要加入

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)
未命名.JPG
[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

回复
分享到:

使用道具 举报

 楼主| 发表于 2013-3-18 21:26 | 显示全部楼层
顶一下。。。。。。。。。。。。。。。。。
您需要登录后才可以回帖 登录 | 我要加入

本版积分规则

QQ|小黑屋|Archiver|手机版|联系我们|声振论坛

GMT+8, 2024-9-21 01:40 , Processed in 0.055998 second(s), 22 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表