Simulink function to detect Step time
조회 수: 2 (최근 30일)
이전 댓글 표시
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.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/408245/image.png)
Thank you so much.
댓글 수: 0
채택된 답변
Fangjun Jiang
2020년 11월 9일
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.
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!