Welcome to Scribd. Sign in or start your free trial to enjoy unlimited e-books, audiobooks & documents.Find out more
Standard view
Full view
of .
0 of .
Results for:
P. 1
Matlab 5

# Matlab 5

Ratings:
(0)
|Views: 50|Likes:

### Availability:

See more
See less

07/13/2010

pdf

text

original

Matlab
Matlab
Note: This tutorial was made using Matlab v. 5.3. Any other versions may have differences in syntax or lack some of thefunctionality referred to later in the tutorial.Matlab is a powerful mathematical tool and this tutorial is intended to be an introduction to some of the functions that youmight find useful. For more detail about other parts of the program, refer to the User's Manual and the help files.
Basics
The following is a picture of what will appear when you start up Matlab. All of the commands that will be discussed should be typed at the >> prompt.Matlab is a program that works with matrices. Scalars are simply 1 x 1 matrices and functions of single variables arenotated as a vector (a 1 x n or n x 1 matrix). The rest of the tutorial will be divided into five parts, each introducing adifferent feature of Matlab. The parts are: basic arithmetic, calculus, complex numbers, matrices, and polynomials andrational functions.
file:///D|/my%20books/lab%20view/Matlab.htm (1 of 14)5/8/2007 7:03:36 PM

Matlab
Basic Arithmetic
Look at the following picture. As you can see, simple computations are very easy. Just type in exactly what you want computed and press enter. If novariables are used, the answer will automatically be assigned to the variable ans. This variable can be used later, but don'tforget that it will automatically be overwritten when a new computation is done.
file:///D|/my%20books/lab%20view/Matlab.htm (2 of 14)5/8/2007 7:03:36 PM

Matlab
Variables are also easy to use. Simply type a variable name, the equal sign, and then some value to be assigned. At any time, you can type "whos" at the command line to see what variables have been assigned.
file:///D|/my%20books/lab%20view/Matlab.htm (3 of 14)5/8/2007 7:03:36 PM