Switch automatically between multiple inputs with conditions in Simulink

Hi I have a simulink model in which I need to switch automatically between three inputs according to witch condition is verified.
I have created an embedded function (attached pictures) to test the conditions and than return the input selected in the output but it doesn't work.
Can somebody propose me another method to do that please?
Thank you

Antworten (0)

Kategorien

Mehr zu Verification, Validation, and Test finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 20 Feb. 2018

Community Treasure Hunt

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

Start Hunting!

Translated by