Using if function block in MATLAB Simulink

12 vues (au cours des 30 derniers jours)
Jupin Sat
Jupin Sat le 5 Avr 2015
Commenté : hamza ünsal le 29 Août 2018
I have created the following block diagram on Matlab Simulink. It should give OUT1=1 OUT2=0 when INPUT>=0 and OUT1=0 OUT2=1 when INPUT<0. But it does not give the expected results. What is the reason for that. Any advice to make it work correctly would be appreciated.

Réponses (1)

Sebastian Castro
Sebastian Castro le 5 Avr 2015
You should use a Merge block with the outputs of the "if" and "else" subsystems, and then look at the signal coming out of that block.
  1 commentaire
hamza ünsal
hamza ünsal le 29 Août 2018
hello can ı help me ?

Connectez-vous pour commenter.

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