if else if else statement

1 visualizzazione (ultimi 30 giorni)
ashwani gupta
ashwani gupta il 6 Mag 2019
Commentato: ashwani gupta il 6 Mag 2019
Hi, i am using If elseif else statement in simulnk. I am getting the output till elseif but not getting the third condtion. Apart from this the blocks are aonly having three conditions , but if i want to impliment more condition, then how to impliment it ?
  2 Commenti
Raj
Raj il 6 Mag 2019
Regarding first part of your question, you'll have to share your model. Its difficult to debug/ comment without looking at the model.
For your second question, you can use "switch case" block to implement multiple conditions. See details here.
ashwani gupta
ashwani gupta il 6 Mag 2019
this is the link of model, if you are not able to download it please tell me how to share you the model directly ?

Accedi per commentare.

Risposte (1)

KALYAN ACHARJYA
KALYAN ACHARJYA il 6 Mag 2019
If you use the multiple ifelse with comma, as mentioned below, is there any issue?
ol.png
Detail read here

Categorie

Scopri di più su Simulink Coder in Help Center e File Exchange

Prodotti


Release

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by