Access Simulation Time in Simulink Model

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 日

1 投票

The Clock block provides the time.

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeModeling についてさらに検索

製品

リリース

R2020a

質問済み:

2020 年 11 月 11 日

コメント済み:

2020 年 11 月 12 日

Community Treasure Hunt

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

Start Hunting!

Translated by