Your interaction with MATLAB is in the form of you giving MATLAB a statement, possibly followed by MATLAB giving you a result, then back to you giving a statement. A statement is usually of the form of either

`.1ex>> variable = expression`
or just

`.1ex>> expression`
The result (which is almost always a matrix -- see

`.1ex>> x = 3 + 2`

To put more than one statement on a single line, separate them by commas or semicolons. To have a single statement span several lines, end each line before the last with a space followed by three or more periods.

`.1ex>> a = 1 + 1, b = 2 + 2`

MATLAB is, by default, case-sensitive to names, so `myvar` and `myVAR`
are distinct. Typing **casesen** toggles this sensitivity on and off.

Normal scalar arithmetic works; you can use MATLAB as a basic calculator.
The arithmetic functions are +, -, , /, and ^ (exponentiation). Use
parentheses as usual to specify precedence. Also see **help arith**.

MATLAB always does complex math, though it will display purely real results
intelligently by omitting the imaginary part. Both `i` and `j` are
equal to the square root of -1. If you happen to overwrite both of these
(by using them as variables for something else), you can recreate with, e.g.

`.1ex>> myi = sqrt(-1)`
or do

A complex number is specified in the form *1+2i* or *1-2i*, where
there are no spaces inside the number. Spaces can cause complex numbers
in vectors and matrices to seem like two numbers, which will produce
errors or at least undesired results.

`.1ex>> x = (1+2i)2`

See **help elfun** for a list of trigonometric, exponential, complex,
and numeric elementary scalar functions. For more specialized functions
see **help specfun**.

There are several commands to help with variable assignments;
**who** will list the variables currently in use in this session,
and **whos** lists the variables along with their sizes and whether
they are purely real. Use **clear variable** to remove

The MATLAB-defined constant **eps** gives the machine unit roundoff,
typically about ; this is useful in specifying tolerances.
The constant **pi** exists. Some other predefined constants are
**realmax** and **realmin** for largest and smallest (positive)
floating point numbers, **inf** for infinity, **NaN** for
Not-a-Number, and **version** for the MATLAB version number.

To halt a runaway computation, use Control-C.
Use **more on**, **more off**, and **more( n)** to have MATLAB
scroll as the UNIX

Line editing in MATLAB will Do The Right Thing: you can use the
up and down arrows to get at old command lines, left and right arrows
to move in and edit these lines, etc. For more details see **help cedit**
or **type cedit** in MATLAB.

Sat Mar 21 21:42:28 EST 1998