For Iterator ブロックを使う際、どのように FOR ループを BREAK で抜け出ますか?

16 ビュー (過去 30 日間)
MathWorks Support Team
MathWorks Support Team 2013 年 2 月 13 日
For Iterator ブロックを使う際に、 FOR ループを BREAK で抜け出したいのですが、どのようにすれば良いか教えて下さい。

採用された回答

MathWorks Support Team
MathWorks Support Team 2013 年 2 月 13 日
Simulink 7.5 (R2010a) では、For Iterator ブロックを使って FOR ループを BREAK する機能はありません。
代替案としては、 For Iterator の状態を保持し、ある条件が満たされた時にループを抜け出すようモデリングしてください。ページ下部の関連ドキュメントにあるモデルで動作をご確認ください。

その他の回答 (0 件)

カテゴリ

Help Center および File Exchange論理的に条件付きで実行されるサブシステム についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!