MATLAB Function Reference | Search  Help Desk |
odeset | See Also |
Create or alter options
structure for input to ODE solvers
options = odeset('name1',value1,'name2',value2,...) options = odeset(oldopts,'name1',value1,...) options = odeset(oldopts,newopts) odesetThe
odeset
function lets you adjust the integration parameters of the ODE solvers. See below for information about the integration parameters.
options = odeset('name1',value1,'name2',value2...)
creates an integrator options structure in which the named properties have the specified values. The odeset
function sets any unspecified properties to the empty matrix []
.
It is sufficient to type only the leading characters that uniquely identify the property name. Case is ignored for property names.
options = odeset(oldopts,'name1',value1,...)
alters an existing options structure with the values supplied.
options = odeset(oldopts,newopts)
alters an existing options structure oldopts
by combining it with a new options structure newopts
. Any new options not equal to the empty matrix overwrite corresponding options in oldopts
. For example:odeset
by itself, displays all property names and their possible values:
odeset AbsTol: [ positive scalar or vector {1e-6}] BDF: [ on | {off} ] Events: [ on | {off} ] InitialStep: [ positive scalar ] Jacobian: [ on | {off} ] JConstant: [ on | {off} ] JPattern: [ on | {off} ] Mass: [ on | {off} ] MassConstant: [ on | {off}] MaxOrder: [ 1 | 2 | 3 | 4 | {5} ] MaxStep: [ positive scalar ] OutputFcn: [ string ] OutputSel: [ vector of integers ] Refine: [ positive integer ] RelTol: [ positive scalar {1e-3} ] Stats: [ on | {off} ] Vectorized: [ on | {off} ]The available properties depend upon the ODE solver used. There are seven principal categories of properties:
ode15s
solver.odefile
, odeget
, ode45
, ode23
, ode23t
, ode23tb
, ode113
, ode15s
,ode23s