Using IF block in Simulink

I'm developing one simulink model for an algorithm which uses the IF condition. Its in some form as follows:
if(u1>u2 && u3<4)
{some action}
elseif(u1<u2 || u1+u2>u3)
{some action}
end
How can I deal with this kind of situation in Simulink?

Respuestas (2)

Azzi Abdelmalek
Azzi Abdelmalek el 15 de Jul. de 2016

0 votos

There are many solutions depending on your exact problem, what kind of actions? you can use switch blocks or the If block

2 comentarios

Rajat Garg
Rajat Garg el 15 de Jul. de 2016
Thanks for the response but i'm looking for the solution just how to enter if condition in "if" simulink block?

Iniciar sesión para comentar.

Categorías

Más información sobre Modeling en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 15 de Jul. de 2016

Comentada:

el 15 de Jul. de 2016

Community Treasure Hunt

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

Start Hunting!

Translated by