MATLAB: Simulink function to detect Step time

functionsimulinkstep

Hello, I need to create a function within simulink that allows me to know the step time value, that is, in this case the display should show the value 1.
Thank you so much.

Best Answer

Use the rising edge of the step signal to trigger a triggered subsystem, which contains a Clock block. When it is triggered, it should output the time at that moment.
Related Question