Multiple if elseif statement
Show older comments
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 Comments
KALYAN ACHARJYA
on 5 Apr 2021
Can you share representative problems and expected results?
KSSV
on 5 Apr 2021
if else can be replaced by using indexing most of the time. Read about it.
Accepted Answer
More Answers (1)
Sajid Afaque
on 5 Apr 2021
0 votes
you can try switch statements as alternative for else if.
depends on your need
Categories
Find more on Loops and Conditional Statements 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!