5.0

5.0 | 1 rating Rate this file 128 downloads (last 30 days) File Size: 15.11 KB File ID: #22695

Minor Time Step Logging

by Guy Rouleau

 

16 Jan 2009 (Updated 05 Aug 2009)

Code covered by BSD License  

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

Download Now | Watch this File

File Information
Description

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)
Zip File Content  
Other Files license.txt,
LogMinorTimeStep.m,
MinorStepLib.mdl,
SimpleBounce.mdl,
slblocks.m
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (1)
01 Oct 2009 Walid maghroum  
Please login to add a comment or rating.
Updates
19 Jan 2009

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

05 Aug 2009

Updated example model.

Tag Activity for this File
Tag Applied By Date/Time
simulink Guy Rouleau 16 Jan 2009 14:45:07
simulation Guy Rouleau 16 Jan 2009 14:45:07
debugging Guy Rouleau 16 Jan 2009 14:45:07
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com