How to update values in Simulink
조회 수: 14 (최근 30일)
이전 댓글 표시
I am creating a simulation with Simulink. I originally wrote the code in MATLAB script, but it is necessary to block it, and it is blocked mainly using MATLAB function. I want to use the value calculated in the previous loop in the next loop. How should I do that? Here is a simple block. Specifically, a wants to take a value from "initial_value" in the first loop, but wants to update the value from "calculate" in the subsequent steps.
댓글 수: 0
답변 (2개)
Mark McBroom
2019년 12월 29일
It would be easier to do this with basic simulink blocks. See attached screen shot. Unit delay block by default has initial value of a=0 but can be set to non-zero vaue.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Simulink Functions에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!