필터 지우기
필터 지우기

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 CenterFile Exchange에서 Modeling에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by