Access Simulation Time in Simulink Model

4 views (last 30 days)
In my Simulink Model I have a MATLAB function block which requires the current simulation times.
How can I access the current Simulation time from the Simulation Model?
Thanks.

Accepted Answer

Fangjun Jiang
Fangjun Jiang on 11 Nov 2020
The Clock block provides the time.

More Answers (0)

Categories

Find more on Simulink Functions in Help Center and File Exchange

Products


Release

R2020a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!