MATLAB: Access Simulation Time in Simulink Model

matlab functionsimulink

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.

Best Answer

The Clock block provides the time.