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

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