clc;                                                                                        % clear the command window
clear all;                                                                                  % clear all variables in the workspace
close all;                                                                                  % close all ports and plots

x = 0;                                                                                      % set x to equal 0
loop_counter = 0;
while loop_counter < 100                                                                    % do 100 iterations of a for loop
     x = x + 2;                                                                             % add 2 to x
     loop_counter = loop_counter + 1;                                                       % add one to loop counter
     disp(['On loop ' num2str(loop_counter) ' the current value of x is ' num2str(x)]);     % display some stuff    
end                                                                                         % end the loop