Multiple if elseif statement
Ältere Kommentare anzeigen
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 Kommentare
KALYAN ACHARJYA
am 5 Apr. 2021
Can you share representative problems and expected results?
KSSV
am 5 Apr. 2021
if else can be replaced by using indexing most of the time. Read about it.
Akzeptierte Antwort
Weitere Antworten (1)
Sajid Afaque
am 5 Apr. 2021
0 Stimmen
you can try switch statements as alternative for else if.
depends on your need
Kategorien
Mehr zu Loops and Conditional Statements finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!