SImple question about Simulink S function
2 views (last 30 days)
Kaustubha Govind on 19 Jun 2014
You can use block.CurrentTime to get the current time in the S-function. You can use a DWork to store the current time at each step and use it in the next step to compute the difference.