% bad_index2.m
%
%  What happens if, inside the loop, we change the loop index ourselves?
%
for i = 1 : 5
  fprintf ( '  Index I = %d\n', i );
  i = 3;
  fprintf ( '  Reset I = %d\n', i );
end
