Info

This question is closed. Reopen it to edit or answer.

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

1 view (last 30 days)
Akbar
Akbar on 14 Jun 2018
Closed: Akbar on 20 Jun 2018
How to represent the 'Selector' block in simulink as a matlab code?
For ex.: 'Sum' block could be coded like 'out = in1 + in2'.

Answers (1)

KVM
KVM on 14 Jun 2018
1) If else 2) Switch Case

Products


Release

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by