15.11.2014 Views

MATLAB Mathematics - SERC - Index of

MATLAB Mathematics - SERC - Index of

MATLAB Mathematics - SERC - Index of

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

5 Differential Equations<br />

The basic input arguments are<br />

odefun<br />

Handle to a function that evaluates the system <strong>of</strong> ODEs. The<br />

function has the form<br />

dydt = odefun(t,y)<br />

where t is a scalar, and dydt and y are column vectors. See<br />

“Function Handles” in the <strong>MATLAB</strong> Programming documentation<br />

for more information.<br />

tspan<br />

y0<br />

options<br />

Vector specifying the interval <strong>of</strong> integration. The solver imposes<br />

the initial conditions at tspan(1), and integrates from tspan(1) to<br />

tspan(end).<br />

Vector <strong>of</strong> initial conditions for the problem<br />

See also “Introduction to Initial Value ODE Problems” on page 5-4.<br />

Structure <strong>of</strong> optional parameters that change the default<br />

integration properties.<br />

“Changing ODE Integration Properties” on page 5-17 tells you how<br />

to create the structure and describes the properties you can<br />

specify.<br />

The output arguments contain the solution approximated at discrete points:<br />

t<br />

y<br />

Column vector <strong>of</strong> time points<br />

Solution array. Each row in y corresponds to the solution at a time<br />

returned in the corresponding row <strong>of</strong> t.<br />

See the reference page for the ODE solvers for more information about these<br />

arguments.<br />

Note See “Evaluating the Solution at Specific Points” on page 5-72 for more<br />

information about solver syntax where a continuous solution is returned.<br />

5-8

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

Saved successfully!

Ooh no, something went wrong!