50% developed

MATLAB Programming

From Wikibooks, open books for an open world
(Redirected from Programming:MATLAB)
Jump to navigation Jump to search

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.

Introduction[edit | edit source]

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 using *.mat files.75%.svg

Basic MATLAB Concepts[edit | edit source]

Variable Manipulation[edit | edit source]

Graphics[edit | edit source]

Graphs and plots25%.svg[edit | edit source]

Using Handles25%.svg[edit | edit source]

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

Graphical User Interface00%.svg[edit | edit source]

M-file Programming[edit | edit source]

Scripts25%.svg[edit | edit source]

Control Flow75%.svg[edit | edit source]

Error Messages75%.svg[edit | edit source]

Debugging M Files50%.svg[edit | edit source]

Advanced Topics[edit | edit source]

Numerical Manipulation00%.svg[edit | edit source]

Advanced I/O00%.svg[edit | edit source]

Object Oriented Programming00%.svg[edit | edit source]

Applications and Examples00%.svg[edit | edit source]

Toolboxes and Extensions00%.svg[edit | edit source]

Alternatives to MATLAB[edit | edit source]

Most MATLAB scripts and functions can be run in the open source program Octave. This program is freely available for most computing platforms. Also freely available is Julia language, and while it doesn't strive for full compatibility, see Julia for MATLAB Users.

Differences between Octave and MATLAB[edit | edit source]

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

References[edit | edit source]

External links[edit | edit source]

Other Wikibooks[edit | edit source]

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