フィルターのクリア

How to implement a continue/return/skip current step in simulink?

2 ビュー (過去 30 日間)
Ishaan
Ishaan 2022 年 5 月 18 日
コメント済み: Ishaan 2022 年 6 月 12 日
How do I emplement equivalent of the following matlab in simulink
if(b == 0)
return % Skip Current Step and output previous value of c
else
c = a / b; % Output New value of c
end
if(v < 0 | i < 0)
return % Skip Current Step if voltage is negative
else
p = v / i; % Output New value of c
end
  2 件のコメント
Murali Sriram
Murali Sriram 2022 年 6 月 8 日
編集済み: Murali Sriram 2022 年 6 月 8 日
You can try out the If-Then-Else block of simulink along with enabled subsystem block.
Ishaan
Ishaan 2022 年 6 月 12 日
Thanks your suggestion worked.

サインインしてコメントする。

回答 (0 件)

カテゴリ

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

タグ

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by