different output for each condition

1 回表示 (過去 30 日間)
Seungkyu Park
Seungkyu Park 2016 年 7 月 8 日
回答済み: Seungkyu Park 2016 年 7 月 8 日
How can I model below code segment with simulink blocks?
subsystem input: i1, i2, i3 subsystem output: o1
logic:
if i3 < i1 // less than i1
o1 = 1
else if i3 > i1 and i3 < i2 // b/w i1 and i2
o1 = 2
else // more than i2
o1 = 3
end
so many thanks

採用された回答

Seungkyu Park
Seungkyu Park 2016 年 7 月 8 日
I was advised to use switch blocks to set the output. Thanks

その他の回答 (0 件)

カテゴリ

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

製品

Community Treasure Hunt

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

Start Hunting!

Translated by