Environmental Engineering Reference
In-Depth Information
Fig. 1.2 Appearance of MATLAB
®
graphical user interface
window to allow the user to have an overview on the previous work and the produced
answers. Confirm that the
;
as closing character of the command, for example
prevents that the answer is shown in the command window. Variables and their
values are stored during a session, if you do not chose to delete them. As we can
work with these variables as we want, we can imagine easily that the mathematical
software offers a lot more than a simple calculator.
Variable names may be quite long. Type
(and enter) to see what is the limit on your installation. Also note that MATLAB
®
is case-sensitive: in general
C
is not the same as
c
. As you see, several variables are
predefined and may better not be used. A very prominent example is:
Try also:
to learn that MATLAB
works with imaginary numbers, with the imaginary
®
p
. In order to check this, try:
unit
i
as