Using the first value of a variable during simulation in Simulink
조회 수: 4 (최근 30일)
이전 댓글 표시
This block generates output only once during simulation (at the beginning of the simulation). And I want to use the output obtained initially throughout the simulation. I tried to use Unit Delay, but I think I have to add something. Could you help?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/308675/image.png)
댓글 수: 0
채택된 답변
Fangjun Jiang
2020년 6월 2일
If the triggered subsystem is truly ran only once, then you don't need to do anything. The output value of this block is "held". Just try it.
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Sources에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!