Solving Index-1 DAEs in Simulink using Level-2 M S-functions

This example illustrates the use of Simulink Level-2 S-functions to solve Index-I DAEs

You are now following this Submission

Although there have been previous examples that solved DAEs in Simulink, there is no documentation for solving DAEs through S-functions. This example solves the Robertson problem (stiff) in Simulink using an S-function called HB1_DAE_sfun.m. The results are compared with hb1dae.m, which is a text-based version that is available as an example with MATLAB.

Cite As

Atul Bhargav (2026). Solving Index-1 DAEs in Simulink using Level-2 M S-functions (https://www.mathworks.com/matlabcentral/fileexchange/17567-solving-index-1-daes-in-simulink-using-level-2-m-s-functions), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0