Using if function block in MATLAB Simulink

1 visualización (últimos 30 días)
Jupin Sat
Jupin Sat el 5 de Abr. de 2015
Comentada: hamza ünsal el 29 de Ag. de 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.

Respuestas (1)

Sebastian Castro
Sebastian Castro el 5 de Abr. de 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.

Categorías

Más información sobre Simulink Functions en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by