
Script M-file
The script can use any variables that have been defined in
the workspace, and any variables created in the script are
added to the workspace when the script executes
A script created in the MATLAB edit window can be
executed by selecting the Save and Run icon from the
menu bar
A script can be executed by typing a file name or by using
the run command from the command window
No matter how you do it, you can only run an M-file if it
is in the current folder