if else if else statement
11 views (last 30 days)
Show older comments
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 Comments
Raj
on 6 May 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.
Answers (1)
KALYAN ACHARJYA
on 6 May 2019
If you use the multiple ifelse with comma, as mentioned below, is there any issue?
Detail read here
0 Comments
See Also
Categories
Find more on Simulink Functions in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!