Multiple if elseif statement
显示 更早的评论
How to write multiple if else if statement . Is there any vectoristion method for it. I want to write the statement five hundred times.
2 个评论
KALYAN ACHARJYA
2021-4-5
Can you share representative problems and expected results?
KSSV
2021-4-5
if else can be replaced by using indexing most of the time. Read about it.
采纳的回答
更多回答(1 个)
Sajid Afaque
2021-4-5
0 个投票
you can try switch statements as alternative for else if.
depends on your need
类别
在 帮助中心 和 File Exchange 中查找有关 Loops and Conditional Statements 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!