1.1 S Matlab, Matlab W: Tarting Indows
1.1 S Matlab, Matlab W: Tarting Indows
different
windows in MATLAB. Next, the Command Window is introduced in detail. This
chapter shows how to use MATLAB for arithmetic operations with scalars in a
fashion similar to the way that a calculator is used. This includes the use of ele
mentary math functions with scalars. The chapter then shows how to define
scalar
variables (the assignment operator) and how to use these variables in arithmetic
calculations. The last section in the chapter introduces script files. It shows how
to
write, save, and execute simple MATLAB programs.
1.1 STARTING MATLAB, MATLAB WINDOWS
It is assumed that the software is installed on the computer, and that the user
can
start the program. Once the program starts, the MATLAB desktop window opens
(Figure 1-1). The window contains four smaller windows: the Command Window,
the Current Folder Window, the Workspace Window, and the Command History
Window. This is the default view that shows four of the various windows of MAT
LAB. A list of several windows and their purpose is given in Table 1-1. The Start
button on the lower left side can be used to access MATLAB tools and features.
Four of the windowsthe Command Window, the Figure Window, the Editor
Window, and the Help Windoware used extensively throughout the book and
are briefly described on the following pages. More detailed descriptions are
included in the chapters where they are used. The Command History Window,
Current Folder Window, and the Workspace Window are described in Sections
1.2, 1.8.4, and 4.1, respectively.
Command Window: The Command Window is MATLABs main window and
opens when MATLAB is started. It is convenient to have the Command Window
as the only visible window, and this can be done by either closing all the other
windows (click on the x at the top right-hand side of the window you want to
close) or by first selecting the Desktop Layout in the Desktop menu, and then