Reset value of Ramp block to be used in Matlab Fctn block
조회 수: 2 (최근 30일)
이전 댓글 표시
Can the initial value of the Ramp block to be reset to its initial value when it reaches certain value (ex: it starts at 2 & can it be reset to restart at 2 when it reaches the value of 10?) The Ramp is being used as the input to the code in ML Fctn block?
Thanks.
댓글 수: 0
답변 (2개)
Fangjun Jiang
2024년 4월 15일
I think it is possible. Use the "State Writer" block.
But using the "Integrator" block would be easier. Enable its external reset.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Event Functions에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!