yuskiy 发表于 2011-11-1 14:44

ode23求解非线性微分方程组时问题

用ode23求解非线性微分方程组,刚开始都正常,第6个参数时出现警告,第7个就直接停止了。这个错误看了一下论坛说是因为没有清除变量,但我又调了一阵觉得没得问题,总觉得不应该纯粹是没有清除变量的问题。希望有高手指点一下。
filename =
   506
Warning: Failure at t=2.220492e+001.Unable to meet
integration tolerances without reducing the step size
below the smallest value allowed (5.684342e-014) at
time t.
> In ode23 at 358
In fxxfgm2 at 333
Warning: Failure at t=2.225631e+001.Unable to meet
integration tolerances without reducing the step size
below the smallest value allowed (5.684342e-014) at
time t.
> In ode23 at 358
In fxxfgm2 at 333
Warning: Failure at t=2.222110e+001.Unable to meet
integration tolerances without reducing the step size
below the smallest value allowed (5.684342e-014) at
time t.
> In ode23 at 358
In fxxfgm2 at 333
Warning: Failure at t=2.225635e+001.Unable to meet
integration tolerances without reducing the step size
below the smallest value allowed (5.684342e-014) at
time t.
> In ode23 at 358
In fxxfgm2 at 333
filename =
   507
Warning: Failure at t=4.838934e-001.Unable to meet
integration tolerances without reducing the step size
below the smallest value allowed (8.881784e-016) at
time t.
> In ode23 at 358
In fxxfgm2 at 333
??? Subscript indices must either be real positive
integers or logicals.

yuskiy 发表于 2011-11-1 15:23

没人遇到过啊?

伤痕累累 发表于 2011-12-7 15:49

给你的程序发上来看看呀。
页: [1]
查看完整版本: ode23求解非线性微分方程组时问题