Page 504 - Applied Numerical Methods Using MATLAB
P. 504
MATLAB 493
Figure I.1 The MATLAB command window with the workspace box and the command box.
memory and the commands you have typed into the Command window up to
the present time, respectively. You might clear the boxes by clicking the cor-
responding submenu under the ‘Edit’ menu and even remove/restore them by
un-checking/checking the corresponding submenu under the ‘View’ menu.
How do we work with the MATLAB command window?
ž By clicking ‘File’ on the top menu and then ‘New’/‘Open’ in the File pull-
down menu, you can create/edit any file with the MATLAB editor.
ž By clicking ‘File’ on the top menu and then ‘Set Path’ in the File pull-down
menu, you can make the MATLAB search path include/exclude the paths
containing the files you want to be run.
ž If you are a beginner in MATLAB, then it may be worthwhile to click ‘Help’
on the top menu, click ‘Demos’ in the Help pull-down menu, (double-)click
any topic that you want to learn, and watch the visual explanation about it.
ž By typing any MATLAB commands/statements in the MATLAB command
window, you can use various powerful mathematic/graphic functions
of MATLAB.
ž If you have an m-file that contains a series of commands/statements com-
posed for performing your job, you can type in the file name (without the
extension ‘.m’) to make it run.
It is helpful to know the procedure of debugging in MATLAB, which is
summarized below.
1. With the program (you want to edit) loaded into the MATLAB Editor/
Debugger window, set breakpoint(s) at any statement(s) which you think

