dae2.m solves a set of differential algebraic equations (DAEs)
f(t,y,y')=0 where y'=dy/dt
with a 2nd order method starting from y0 at time t0 and finishing at time tfin where tspan=[t0 t1 ... tfin].
The method will also work well for stiff sets of ODEs.
See pendrun.m, penddae.m & pendg.m for a pendulum example.
See dae4.m and dae4o.m for higher order accurate versions.
Tony Roberts (2023). Differential Algebraic Equation Solvers (https://www.mathworks.com/matlabcentral/fileexchange/28-differential-algebraic-equation-solvers), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!