フィルターのクリア

More efficient equivalent to while looping block in Simulink

4 ビュー (過去 30 日間)
Serg
Serg 2022 年 2 月 21 日
コメント済み: Walter Roberson 2022 年 2 月 27 日
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
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
Mark McBroom 2022 年 2 月 26 日
You could try a MATLAB Function block and implement the logic in MATLAB.

カテゴリ

Help Center および File ExchangeSources についてさらに検索

製品


リリース

R2021b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by