Effacer les filtres
Effacer les filtres

How to implement multiple output condition using outport and switch?

2 vues (au cours des 30 derniers jours)
Sohail Khan
Sohail Khan le 16 Mai 2019
Modifié(e) : Sohail Khan le 25 Juin 2019
Here the code I want model in simulink:
if(x==0 and y==0)then
x=1;
y=2;
else
x=2
y=3
z=0
endif
I want model above code using switch,inport and outport.Can anyone help out with some example?
  2 commentaires
Arvind Sathyanarayanan
Arvind Sathyanarayanan le 16 Mai 2019
Modifié(e) : Arvind Sathyanarayanan le 16 Mai 2019
Sohail,
What have you tired so far? Simulink has relational & logical operators block which can used to implement your code.
If you're new to simulink, I would recommend going through the on-ramp
Sohail Khan
Sohail Khan le 17 Mai 2019
Can u give any example, how to implement such type of code?

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Simulink Functions dans Help Center et File Exchange

Produits


Version

R2012a

Community Treasure Hunt

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

Start Hunting!

Translated by