Graphics Programs Reference
In-Depth Information
or
StudentMATLAB
.Alternatively,youmayhaveaniconsetupthatenables
you to start MATLAB witha simple double-click. On a UNIX machine, gen-
erally you need only type
matlab
in a terminal window, though you may first
have to find the
matlab/bin
directory and add it to your path. Or you may
have an icon or a special button on your desktop that achieves the task.
➱
On UNIX systems, you should not attempt to run MATLAB in the
background by typing
matlab &
. This will fail in either the current
or older versions.
However you start MATLAB, you will briefly see a window that displays
the MATLAB logo as well as some MATLAB product information, and then a
MATLABDesktop
window will launch. That window will contain a title bar, a
menubar,atoolbar,andfiveembeddedwindows,twoofwhicharehidden.The
largest and most important window is the
CommandWindow
on the right. We
will go into more detail in Chapter 3 on the use and manipulation of the other
four windows: the
LaunchPad
,the
Workspacebrowser
,the
CommandHistory
window, and the
Current Directory browser
. For now we concentrate on the
Command Window to get you started issuing MATLAB commands as quickly
as possible. At the top of the Command Window, you may see some general
information about MATLAB, perhaps some special instructions for getting
started or accessing help, but most important of all, a line that contains a
prompt. The prompt will likely be a double caret (
>>
or
). If the Command
Windowis“active”,itstitlebarwillbedark,andthepromptwillbefollowedby
a cursor (a vertical line or box, usually blinking). That is the place where you
will enter your MATLAB commands (see Chapter 2). If the Command Window
is not active, just click in it anywhere. Figure 1-1 contains an example of a
newly launched MATLAB Desktop.
➱
In older versions of MATLAB, for example 5.3, there is no integrated
Desktop. Only the Command Window appears when you launch the
application. (On UNIX systems, the terminal window from which
you invoke MATLAB becomes the Command Window.) Commands
that we instruct you to enter in the Command Window inside the
Desktop for version 6 can be entered directly into the Command
Window in version 5.3 and older versions.
Typing in the Command Window
Click in the Command Window to make it active. When a window becomes
active, its titlebar darkens. It is also likely that your cursor will change from
Search WWH ::
Custom Search