You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
When running long Simulations, you sometimes want to know how long each state was active, with Simulation time. This function does this.
This function will run a Simulink model that contains Stateflow charts.
It will time how long each state was active and display it in a table.
It uses the DataLogs format for logging each state, after making sure all states are logged.
Inputs: Model Name - mdlName
Outputs: Table
Example use: Stateflow_Time_Logger('example_sf_car')
I've added two example models for testing: example_sf_car, example_yoyo
Read the help in the m-file for more info.
Cite As
Roni Peer (2026). Time Logger for Stateflow (https://www.mathworks.com/matlabcentral/fileexchange/40505-time-logger-for-stateflow), MATLAB Central File Exchange. Retrieved .
General Information
- Version 1.0.0.0 (205 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.0.0.0 |
