How to Determine the current/next Simulink TimeStep when running a simulation?

조회 수: 4 (최근 30일)
Bobalob
Bobalob 2015년 3월 4일
답변: A Jenkins 2015년 3월 4일
Hi There,
I have a 'Matlab Function' block in a simulink model. I need to multiply a particular variable by the current/next timestep as the simulation is run - how exactly do I do this/ get the timestep data?
Thanks
*Edit*
Also is there anyway to get the the simulation runtime as a variable from matlab rather than having to enter manually?

답변 (1개)

A Jenkins
A Jenkins 2015년 3월 4일
Are you looking for the Clock block?

카테고리

Help CenterFile Exchange에서 Sources에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by