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.

Initial Value Problems for ODEs and DAEs<br />

2.5<br />

Solution <strong>of</strong> van der Pol Equation, µ = 1000<br />

2<br />

1.5<br />

1<br />

0.5<br />

solution y 1<br />

0<br />

−0.5<br />

−1<br />

−1.5<br />

−2<br />

−2.5<br />

0 500 1000 1500 2000 2500 3000<br />

time t<br />

Note For detailed instructions for solving an initial value ODE problem, see<br />

“Example: Solving an IVP ODE (van der Pol Equation, Nonstiff)” on page 5-9.<br />

Parameterizing an ODE Function<br />

The preceding sections showed how to solve the van der Pol equation for two<br />

different values <strong>of</strong> the parameter µ. In those examples, the values µ = 1 and<br />

µ = 1000 are hard-coded in the ODE functions. If you are solving an ODE for<br />

several different parameter values, it might be more convenient to include the<br />

parameter in the ODE function and assign a value to the parameter each time<br />

you run the ODE solver. This section explains how to do this for the van der Pol<br />

equation.<br />

5-13

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

Saved successfully!

Ooh no, something went wrong!