% 1. General syntax of switch/case statement     syntax_switch.m
switch (switch_expression)
 case case_expr_1
   Statement 1;
   Statement 2;
 case case_expr_2
   Statement 3;
   Statement 4;
 otherwise         
   Statement 5;
   Statement 6;
end

% 2. Several case statements can be combined together; if they execute the same
%    Statement 1, Statement 2

switch (switch_expression)
 case { case_expr_1 ,  case case_expr_2 }  % These are braces! not parentheses in the case
   Statement 1;
   Statement 2;
 otherwise         
   Statement 5;
   Statement 6;
end
