View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
Minor Time Step Logging

5.0 | 7 ratings Rate this file 9 Downloads (last 30 days) File Size: 45.5 KB File ID: #22695 Version:
image thumbnail

Minor Time Step Logging


Guy Rouleau (view profile)


16 Jan 2009 (Updated )

Demonstration showing how to log data computed by the Simulink® solver at minor time steps.

Editor's Notes:

This file was selected as MATLAB Central Pick of the Week

| Watch this File

File Information

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.

Required Products Simulink
MATLAB release MATLAB 7.8 (R2009a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (7)
08 Dec 2015 Stephane

11 Feb 2015 Henry Zhao

01 Oct 2013 Anthony

This submission is excellent. I appreciate your efforts. The minor time step recording enabled me to find a bug that has been haunting me for about a week. Please keep this submission updated for current and future Matlab/Simulink releases.

16 Aug 2012 Ingo Tammer

05 Dec 2011 Maxime Journot

Very useful post !!

07 Jun 2011 Will Campbell

01 Oct 2009 Walid maghroum

19 Jan 2009 1.1

- Fixed bug with legend labels
- Changed markers for minor (x) and major (o)

05 Aug 2009 1.2

Updated example model.

21 Apr 2011 1.3

added model screenshots

01 Sep 2016

Updated license

Contact us