
Select one or more lines
and right-click to copy
and re-use the command
with the command
window, to evaluate it or
to create an m-file
Figure 3: The Matlab Command Window
To activate or close these and some other windows, choose View from the
toolbar. In the following few subsections, the most basic from this screen are
documented.
1.5.1 Command Window – Matlab as a Calculator
It is the main window in which the user communicates with the software. In
the command window, the user can view the prompt symbol “>>” which
indicates that Matlab is ready to accept various commands by the user. Via
this window, the user can employ the basic arithmetic operators like: “+”
(addition), “-” (subtraction), “*” (multiplication), “/” (division), “^” (powers)
and the “( )” (brackets), as well as many other build in elementary and other
functions and commands that will be referred to later.
As a first example, enter the following command that performs a basic
calculation (Figure 4):
“5+6/12+9/3-21”
Komentarze do niniejszej Instrukcji