happy[求助] 帮忙看看那里不对?(ode45)
dydt该怎么改阿?附件中程序(我试着改了还不行啊)
高手帮忙改改好吗
运行时总提示:
>> Warning: Obsolete syntax. Use ode45(fun,tspan,y0,...) instead.
(Type "warning off MATLAB:odearguments:ObsoleteSyntax" to suppress this warning.)
> In D:\MATLAB6p5\toolbox\matlab\funfun\private\odearguments.m at line 39
In D:\MATLAB6p5\toolbox\matlab\funfun\ode45.m at line 155
In C:\Documents and Settings\Administrator\桌面\yjhaasystem\yjhaaSystem.m at line 23
??? Error using ==> d:/matlab6p5/toolbox/matlab/funfun/private/odearguments
Solving YJHBB requires an initial condition vector of length 23.
Error in ==> D:\MATLAB6p5\toolbox\matlab\funfun\ode45.m
On line 155 ==> [neq, tspan, ntspan, next, t0, tfinal, tdir, y0, f0, args, ...
Error in ==> C:\Documents and Settings\Administrator\桌面\yjhaasystem\yjhaaSystem.m
On line 23 ==> = ode45('yjhbb',tn,1,y0); % ode45 solution
回复:(yjh2911)happy[求助] 帮忙看看那里不对?(...
直接在命令窗口输入 yjhbb(t,y0)<BR>t和y0给定数值,你看看是否有错,慢慢改吧回复:(happy)回复:(yjh2911)happy[求助] 帮忙看...
好 <BR>我试试<BR>谢谢指点回复:(happy)回复:(yjh2911)happy[求助] 帮忙看...
<P><FONT size=4>没有提示什么错误<BR>结果如下: (为什么运行yjhaasystem不行呢?在线等待)<BR>ans =</FONT></P><P><FONT size=4> 0<BR> 0<BR> 0<BR> 0<BR> 0<BR> 0<BR> 0<BR> 0<BR> 0<BR> 0<BR> 0<BR> 0<BR> 0<BR> -1.2013<BR> 0<BR> -1.8483<BR> 0<BR> 0<BR> 0<BR> -191.1495<BR> 0<BR> -129.1240<BR> 0<BR><BR></FONT></P>
回复:(happy)回复:(yjh2911)happy[求助] 帮忙看...
<P>谢谢!!!!!!真happy</P><P>谢谢!!!!!!真happy<BR>找到错误,已经修改。谢谢了大侠!</P>
页:
[1]