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

Changing DDE Integration Properties<br />

The default integration properties in the DDE solver dde23 are selected to<br />

handle common problems. In some cases, you can improve solver performance<br />

by overriding these defaults. You do this by supplying dde23 with an options<br />

structure that specifies one or more property values.<br />

For example, to change the relative error tolerance <strong>of</strong> dde23 from the default<br />

value <strong>of</strong> 1e-3 to 1e-4,<br />

1 Create an options structure using the function ddeset by entering<br />

options = ddeset('RelTol', 1e-4);<br />

2 Pass the options structure to dde23 as follows:<br />

sol = dde23(ddefun,lags,history,tspan,options)<br />

For a complete description <strong>of</strong> the available options, see the reference page for<br />

ddeset.<br />

5-60

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

Saved successfully!

Ooh no, something went wrong!