You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
Editor's Note: This file was selected as MATLAB Central Pick of the Week
This submission is an example showing how a Level 2 M-file S-function can be used to help debugging models and vizualize the values computed by the Simulink® solver at minor time steps.
This submission contains a Level-2 M-file S-function that logs the minor time step data of a signal into the MATLAB® workspace and displays it in a figure at the end of the simulation.
The block is in a library and includes an slblocks.m file. Just place it on your MATLAB path and you should see it appear in the Simulink Library Browser. One example model is also included to demonstrate typical usage.
Cite As
Guy Rouleau (2026). Minor Time Step Logging (https://se.mathworks.com/matlabcentral/fileexchange/22695-minor-time-step-logging), MATLAB Central File Exchange. Retrieved .
General Information
- Version 1.3.0.1 (45.5 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
