MATLAB is an interactive software system for numerical
computations and graphics. The name MATLAB stands for MATrix
LABoratory. As the name suggests, MATLAB is specially designed for
matrix computations, solving systems of linear equations,
factorization of matrices, and so much. On the negative side,
MATLAB does not produce stand-alone applications, the programs
can be run only on computers that have MATLAB installed.
1.
Getting started
When you start MATLAB, a special window called the MATLAB
desktop appears, the screen looks like the one that was shown in
Figure 1.1. The desktop is a window that contains other windows.
The major tools within or accessible from the desktop are
-
Command window: used to enter commands and data.
Command history.
Workspace.
Current folder
After starting MATLAB, the command window will open with the
command prompt being displayed
>>
This window allows a user to enter simple commands. To perform
a simple computation, type a command and next press the Enter or
Return key. For instance:
>> x = 2 + 7
x =
9
Note that the results of these computations are saved in variables
whose names are chosen by the user. If you need to obtain their
values again, type their names and pressing Enter key. If you type
again:
>> x
x =
9