if else if else statement
8 次查看(过去 30 天)
显示 更早的评论
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 个评论
Raj
2019-5-6
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.
回答(1 个)
KALYAN ACHARJYA
2019-5-6
If you use the multiple ifelse with comma, as mentioned below, is there any issue?
Detail read here
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Simulink Functions 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!