作者rickykidd (saber.c)
看板Programming
标题[问题] MATLAB ODE错误= = 请高手指教
时间Wed Apr 14 15:13:18 2010
小弟论文需要跑一些控制程式,所以用MATLAB去跑图形QQ
我程式打完,可是却出现错误讯息,我研究一下ode23那个函式没进去
不知道是哪边错误QQ
错误讯息:
??? Attempted to access x(2); index out of bounds because numel(x)=1.
Error in ==> ztwoorder at 11
xdot=[x(2);
Error in ==> funfun\private\odearguments at 110
f0 = feval(ode,t0,y0,args{:}); % ODE15I sets args{1} to yp0.
Error in ==> ode23 at 172
[neq, tspan, ntspan, next, t0, tfinal, tdir, y0, f0, odeArgs, odeFcn, ...
Error in ==> slotine at 45
[t,x]=ode23('ztwoorder',tspan,x0
程式我贴在网址上
http://paste.plurk.com/show/231297/ 主程式 .m档
http://paste.plurk.com/show/231299/ 两个函式.m档 贴在一起
请高手帮忙Q_Q~~~ 这个我苦恼很久 不知道怎麽处理
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 140.130.22.88
1F:→ ykjiang:有 matlab 版 61.59.14.248 04/14 20:29