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'.

Antworten (1)

KVM
KVM am 14 Jun. 2018

0 Stimmen

1) If else 2) Switch Case

Diese Frage ist geschlossen.

Produkte

Version

R2017b

Gefragt:

am 14 Jun. 2018

Geschlossen:

am 20 Jun. 2018

Community Treasure Hunt

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

Start Hunting!

Translated by