Control Statements
MATLAB has four major flow-control statements, each marked by its keywords and an end:
- Branching:
if,else,elseif/switch,case,otherwise - Looping:
for/while, withcontinue,break - Error handling:
try,catch - Termination:
return