% Lesson 1: Introduction to the MATLAB Environmnet
% Part 3: Introduction to Script Files
% Author: Your name here
% Last Updated: Wednesday 1/16/2019
%
% In-class announcement:
%     - Jeff will upload Lab 2 prompt before 12:01pm
%     -Friday February 8, 2019 : Jeff will not be in lab that morning
%     -Lab 2 is due in two weeks from today on Wednesday 1/30/2019 before 12:01pm
%     -Lab 1 is due today 1/16/2019 before 12:01pm
%
% WHY DOES MATLAB'S COMMAND WINDOW SUCK SOMETIMES?
% The command window is a (sometimes) inconvenient space to execute a sequence of commands. This is because:
% Commands executed in the command window are not saved to be executed again in that specific order. This is not fully true since MATLAB does save your 25,000 most recent command in the Command History. But, those command are one-offs: these only makes sense in the context of a larger sequence of code. The Command History is not a great way to run and re-run sequences of code.
% The Command Window is not interactive in the sense that every time I push enter, only the most recent command is executed.
% With these deficiencies in mind, we might wonder: What other tool might we use to program that allows us to address these problems?
%
% MATLAB .m SCRIPT FILES
% These files are the first example of "programming." We will use script file to capture a sequnece of commands that solves a specific problem. In MATLAB, all command in a script file are read from line 1 to the end of the file in the same order each time.