How to use Simulation time?

1 回表示 (過去 30 日間)
Praveen Kumar Pakkirisamy
Praveen Kumar Pakkirisamy 2020 年 4 月 28 日
回答済み: Milan Padhiyar 2021 年 1 月 8 日
Hello People,
I want to implement the following equation in Simulink
I am using integrator block in simulink to solve the equations. However I am not quite sure on implementing (t-t_k) part since t is the simulation time.
Thank you in advance.

回答 (1 件)

Milan Padhiyar
Milan Padhiyar 2021 年 1 月 8 日
Hi Praveen,
To get the current simulation time, you can use the Clock Block in your model.
This blocok utputs the current simulation time at each simulation step. This block is useful for other blocks that need the simulation time.
If you are using discrete system, use the Digital Clock block.
I hope this information helps you in your query.
Thanks

カテゴリ

Help Center および File ExchangeSimulink についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by