More efficient equivalent to while looping block in Simulink
조회 수: 4(최근 30일)
표시 이전 댓글
Hello,
so I have a model in Simulink, which utilizes while iterator loop to meet a condition for each timestep. It was done in a manner of adding constant (0.01) to a constant (1.5) during each iteration until condition is met.
While the model work fine, the time of simulation seems to be way too long. Is there any equivalent or another way to "find-a-value"/iterate which would accelerate the process?
Thanks in advance!
댓글 수: 1
Walter Roberson
2022년 2월 27일
https://www.mathworks.com/matlabcentral/fileexchange/61633-fsolve-matlab-simulink-example
but you might not be able to deploy.
답변(1개)
Mark McBroom
2022년 2월 26일
You could try a MATLAB Function block and implement the logic in MATLAB.
댓글 수: 0
참고 항목
범주
Find more on General Applications in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!