So far I’ve been only executing commands using the command window. This is a really inefficient way to use MATLAB, especially when you do fairly involved multi-step calculations. Its usually easier to use a script file to execute your commands. A script file is a text file that contains a set of commands you wish to execute as a group. Script files make debugging and saving commands a lot easier.