pgh79 发表于 2013-3-18 19:48

matlab程序调试求助

??? 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


Error in ==> Singledegree at 3
=ode45(@springdampmass,,y0);

请各位帮忙看看,谢谢!





这么写对吗?
Fm=@u*m*9.8.*(Y(2)~=0|| Y(2)=0&&abs(k*Y(1)-alpha*Y(3)- Dp)>fmax)+...
    .* (Y(2)=0&abs(k*Y(1)-alpha*Y(3)- Dp)<=fmax)


Dp*Ap是fg,k*Y(1)是k*x,alpha*Y(3)是fe



pgh79 发表于 2013-3-18 21:26

顶一下。。。。。。。。。。。。。。。。。
页: [1]
查看完整版本: matlab程序调试求助