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.
Atul Bhargav (2022). 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 .
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!