Using IF block in Simulink

I'm developing one simulink model for an algorithm which uses the IF condition. Its in some form as follows:
if(u1>u2 && u3<4)
{some action}
elseif(u1<u2 || u1+u2>u3)
{some action}
end
How can I deal with this kind of situation in Simulink?

回答 (2 件)

Azzi Abdelmalek
Azzi Abdelmalek 2016 年 7 月 15 日

0 投票

There are many solutions depending on your exact problem, what kind of actions? you can use switch blocks or the If block

2 件のコメント

Rajat Garg
Rajat Garg 2016 年 7 月 15 日
Thanks for the response but i'm looking for the solution just how to enter if condition in "if" simulink block?
Walter Roberson
Walter Roberson 2016 年 7 月 15 日

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

カテゴリ

ヘルプ センター および File ExchangeModeling についてさらに検索

タグ

質問済み:

2016 年 7 月 15 日

コメント済み:

2016 年 7 月 15 日

Community Treasure Hunt

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

Start Hunting!

Translated by