matlab ode23函数出错
本人MATLAB小白,求助微分方程求解:函数定义:functionyp=ftest421(x,y)yp=x.^2./y-x.*cos(y);执行出错:>>[x,y]=od...
本人MATLAB小白,求助微分方程求解:
函数定义:
function yp = ftest421(x,y)
yp=x.^2./y-x.*cos(y);
执行出错:
>> [x,y]=ode23('ftest421',0,4,1)
Error using odearguments (line 81)
The last entry in tspan must be different from the first entry.
Error in ode23 (line 113)
[neq, tspan, ntspan, next, t0, tfinal, tdir, y0, f0, odeArgs, odeFcn, ...
>> [x,y]=ode23('ftest421',0,4,1)
Error using odearguments (line 81)
The last entry in tspan must be different from the first entry.
Error in ode23 (line 113)
[neq, tspan, ntspan, next, t0, tfinal, tdir, y0, f0, odeArgs, odeFcn, ...
求解答! 展开
函数定义:
function yp = ftest421(x,y)
yp=x.^2./y-x.*cos(y);
执行出错:
>> [x,y]=ode23('ftest421',0,4,1)
Error using odearguments (line 81)
The last entry in tspan must be different from the first entry.
Error in ode23 (line 113)
[neq, tspan, ntspan, next, t0, tfinal, tdir, y0, f0, odeArgs, odeFcn, ...
>> [x,y]=ode23('ftest421',0,4,1)
Error using odearguments (line 81)
The last entry in tspan must be different from the first entry.
Error in ode23 (line 113)
[neq, tspan, ntspan, next, t0, tfinal, tdir, y0, f0, odeArgs, odeFcn, ...
求解答! 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询