MATLAB Programming

MATLAB is a programming language developed by MathWorks. It started out as a matrix programming language where linear algebra programming was simple. It can be run both under interactive sessions and as a batch job. Alternatives to MATLAB exist including open source software packages.


For the beginner just starting into MATLAB programming, a tutorial is available to write Hello World75%.svg. Once Hello World, which is the simplest of programs, works the beginner can move on to explore the MATLAB workspace50%.svg available for developing or running Matlab code.

Using the workspace the beginner can then learn to manipulate basic MATLAB Variables50%.svg. For convenience Matlab allows the workspace to be saved and loaded usinge *.mat files.50%.svg

Basic MATLAB ConceptsEdit

Variable ManipulationEdit


Graphs and plots25%.svgEdit

Using Handles25%.svgEdit

What is a handle?
Figure handles
Axis handles
Other types of handles
Annotating Plots25%.svg

Graphical User Interface00%.svgEdit

M-file ProgrammingEdit


Control Flow75%.svgEdit

Error Messages75%.svgEdit

Debugging M Files50%.svgEdit

Advanced TopicsEdit

Numerical Manipulation00%.svgEdit

Advanced I/O00%.svgEdit

Object Oriented Programming00%.svgEdit

Applications and Examples00%.svgEdit

Toolboxes and Extensions00%.svgEdit

Alternatives to MATLABEdit

Most MATLAB scripts and functions can be run in the open source program Octave. This program is freely available for most computing platforms.

Differences between Octave and MATLABEdit

The most important differences between Octave and MATLAB that anyone willing to use Octave instead of MATLAB should be aware of.


External linksEdit

Other WikibooksEdit

A number of other wikibooks use MATLAB to teach their subjects. The following wikibooks make use of MATLAB:

Read in another language