主题:ode45原程序问题
在matlab7.0中,ode45函数的源程序中有这些句子:
function varargout = ode45(ode,tspan,y0,options,varargin)
……
% Set solver arguments
[neq, tspan, ntspan, next, t0, tfinal, tdir, y0, f0, odeArgs, ...
options, threshold, rtol, normcontrol, normy, hmax, htry, htspan, ...
dataType] = ...
odearguments(FcnHandlesUsed, solver_name, odeFcn, tspan, y0, ...
options, varargin);
请问,odearguments到底是什么函数?我用help却找不到。上面的程序什么意思?执行程序后neq, tspan, ntspan, next, t0, tfinal, tdir, y0, f0, odeArgs, options, threshold, rtol, normcontrol, normy, hmax, htry, htspan, dataType等等这些参数具体值是多少?
同样的问题存在于以下这些程序中:
% Handle the event function
[haveEventFcn,eventFcn,eventArgs,valt,teout,yeout,ieout] = ...
odeevents(FcnHandlesUsed,odeFcn,t0,y0,options,varargin);
……
% Handle the mass matrix
[Mtype, Mfun, Margs, M] = odemass(FcnHandlesUsed,odeFcn,t0,y0,options,varargin);
……
% Incorporate the mass matrix into odeFcn and odeArgs.
[odeFcn,odeArgs] = odemassexplicit(FcnHandlesUsed,Mtype,odeFcn,odeArgs,Mfun,Margs,L,U);
请各位大虾不吝赐教,谢谢!
function varargout = ode45(ode,tspan,y0,options,varargin)
……
% Set solver arguments
[neq, tspan, ntspan, next, t0, tfinal, tdir, y0, f0, odeArgs, ...
options, threshold, rtol, normcontrol, normy, hmax, htry, htspan, ...
dataType] = ...
odearguments(FcnHandlesUsed, solver_name, odeFcn, tspan, y0, ...
options, varargin);
请问,odearguments到底是什么函数?我用help却找不到。上面的程序什么意思?执行程序后neq, tspan, ntspan, next, t0, tfinal, tdir, y0, f0, odeArgs, options, threshold, rtol, normcontrol, normy, hmax, htry, htspan, dataType等等这些参数具体值是多少?
同样的问题存在于以下这些程序中:
% Handle the event function
[haveEventFcn,eventFcn,eventArgs,valt,teout,yeout,ieout] = ...
odeevents(FcnHandlesUsed,odeFcn,t0,y0,options,varargin);
……
% Handle the mass matrix
[Mtype, Mfun, Margs, M] = odemass(FcnHandlesUsed,odeFcn,t0,y0,options,varargin);
……
% Incorporate the mass matrix into odeFcn and odeArgs.
[odeFcn,odeArgs] = odemassexplicit(FcnHandlesUsed,Mtype,odeFcn,odeArgs,Mfun,Margs,L,U);
请各位大虾不吝赐教,谢谢!