Multiple if elseif statement
Mostrar comentarios más antiguos
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 comentarios
KALYAN ACHARJYA
el 5 de Abr. de 2021
Can you share representative problems and expected results?
KSSV
el 5 de Abr. de 2021
if else can be replaced by using indexing most of the time. Read about it.
Respuesta aceptada
Más respuestas (1)
Sajid Afaque
el 5 de Abr. de 2021
0 votos
you can try switch statements as alternative for else if.
depends on your need
Categorías
Más información sobre Loops and Conditional Statements en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!