28.12.2012 Views

Figure Properties - SERC

Figure Properties - SERC

Figure Properties - SERC

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

odefile<br />

2odefile<br />

Purpose Define a differential equation problem for ordinary differential equation (ODE)<br />

solvers<br />

Note This reference page describes the odefile and the syntax of the ODE<br />

solvers used in MATLAB, Version 5. MATLAB, Version 6, supports the<br />

odefile for backward compatibility, however the new solver syntax does not<br />

use an ODE file. New functionality is available only with the new syntax. For<br />

information about the new syntax, see odeset or any of the ODE solvers.<br />

Description odefile is not a command or function. It is a help entry that describes how to<br />

create an M-file defining the system of equations to be solved. This definition<br />

is the first step in using any of the MATLAB ODE solvers. In MATLAB<br />

documentation, this M-file is referred to as an odefile, although you can give<br />

your M-file any name you like.<br />

You can use the odefile M-file to define a system of differential equations in<br />

one of these forms<br />

or<br />

where:<br />

y′ = ft ( , y)<br />

Mt ( , y)y′<br />

= ft ( , y)v<br />

t is a scalar independent variable, typically representing time.<br />

y is a vector of dependent variables.<br />

f is a function of t and y returning a column vector the same length as y.<br />

Mt ( , y)<br />

is a time-and-state-dependent mass matrix.<br />

The ODE file must accept the arguments t and y, although it does not have to<br />

use them. By default, the ODE file must return a column vector the same<br />

length as y.<br />

All of the solvers of the ODE suite can solve Mt ( , y)y′<br />

=<br />

ft ( , y)<br />

, except ode23s,<br />

which can only solve problems with constant mass matrices. The ode15s and<br />

2-1559

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!