Multiple if elseif statement
Afficher commentaires plus anciens
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 commentaires
KALYAN ACHARJYA
le 5 Avr 2021
Can you share representative problems and expected results?
KSSV
le 5 Avr 2021
if else can be replaced by using indexing most of the time. Read about it.
Réponse acceptée
Plus de réponses (1)
Sajid Afaque
le 5 Avr 2021
0 votes
you can try switch statements as alternative for else if.
depends on your need
Catégories
En savoir plus sur Loops and Conditional Statements dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!