while end loop matlab will complete repetitions until code example Example: matlab while loop n = 10; while n > 1 n = n-1; end