Access Simulation Time in Simulink Model

3 次查看(过去 30 天)
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.

采纳的回答

Fangjun Jiang
Fangjun Jiang 2020-11-11
The Clock block provides the time.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Modeling 的更多信息

产品


版本

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by