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 DDEs<br />

The demo ddex2 plots only the third component, the heart rate, which shows a<br />

sharp change at t = 600.<br />

Solve by Restarting. The example could have solved this problem by breaking it<br />

into two pieces<br />

sol = dde23(@ddex2de,tau,history,[0, 600]);<br />

sol = dde23(@ddex2de,tau,sol,[600, 1000]);<br />

The solution structure sol on the interval [0,600] serves as history for<br />

restarting the integration at t = 600. In the second call, dde23 extends sol so<br />

that on return the solution is available on the whole interval [0,1000]. That<br />

is, after this second return,<br />

Sint = deval(sol,[300,900]);<br />

evaluates the solution obtained in the first integration at t = 300, and the<br />

solution obtained in the second integration at t = 900.<br />

When discontinuities occur in low order derivatives at points known in<br />

advance, it is better to use the Jumps property. When you use event functions<br />

to locate such discontinuities, you must restart the integration at<br />

discontinuities.<br />

1.7<br />

Heart Rate for Bar<strong>of</strong>lex−Feedback Mechanism.<br />

1.6<br />

1.5<br />

H(t)<br />

1.4<br />

1.3<br />

1.2<br />

1.1<br />

1<br />

0 200 400 600 800 1000<br />

time t<br />

5-59

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

Saved successfully!

Ooh no, something went wrong!