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!