MATLAB Answers

Simulink function to detect Step time

1 view (last 30 days)
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.


Sign in to comment.

Accepted Answer

Fangjun Jiang
Fangjun Jiang on 9 Nov 2020
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.

  1 Comment

Alejandro Fernández
Alejandro Fernández on 9 Nov 2020
Yes perfect! Thank you so much for your help

Sign in to comment.

More Answers (0)




Community Treasure Hunt

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

Start Hunting!