Implementing if-else condition in simulink

7 vues (au cours des 30 derniers jours)
Devyani
Devyani le 23 Déc 2015
Hi, I want to use if/else condition for my input generated using signal generator. I want if u1>0 it follows algorithm1 which again uses u1 but all the previous values intact. However, simulink trim the values above 0 and then runs the algorithm. Similarly when u1<0 then algorithm2 is followed. How do we do it? Thank in advance

Réponses (0)

Catégories

En savoir plus sur Modeling dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by