Introduction to Matlab 5.1.0

by Anu Rao and Andre Lehovich



Table of Contents


What is Matlab?

Matlab (short for "Matrix Laboratory") is a software package for doing numerical manipulations with matrices and graphics, to name a few of its capabilities. It can be run interactively, via scripts, and non-interactively in the background.
[Back]

Running Matlab

To run matlab, at the Unix prompt type

matlab

and you will get the matlab prompt ">>". At the prompt you can type in matlab commands interactively, or load in script files.

A script file (naming convention: name.m) contains the matlab commands just as you would type them in interactively. Scripts are very useful if you are using the same sequence of commands over and over again and don't want to type in all the commands each time. To load in a script file, say goof.m, at the matlab prompt type

>> goof

and matlab will execute the commands in goof.m.

[Back]

Online Help

Matlab has very good on-line help, and there are several ways to access it:
[Back]

Matlab Examples

Below are some matlab scripts and sample commands:

Matrix Manipulation

Graphics

Information About Your Variables

Saving Your Work

[Back]

Helpful Hints/Notes for Matlab

[Back]
http://math.arizona.edu/~swig/documentation/matlab-intro/index.php
Last modified: Fri, 14 Dec 2007 15:50:52 -0700
E-mail: swig@math.arizona.edu
Valid XHTML 1.0! Valid CSS!