Represent the 'Selector' block in simulink as matlab code?

How to represent the 'Selector' block in simulink as a matlab code?
For ex.: 'Sum' block could be coded like 'out = in1 + in2'.

回答 (1 件)

KVM
KVM 2018 年 6 月 14 日

0 投票

1) If else 2) Switch Case

この質問は閉じられています。

製品

リリース

R2017b

質問済み:

2018 年 6 月 14 日

閉鎖済み:

2018 年 6 月 20 日

Community Treasure Hunt

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

Start Hunting!

Translated by