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.
Most MATLAB scripts and functions can be run in the open source programme octave. This is freely available for most computing platforms.
GNU Octave and LabVIEW MathScript are systems for numerical computations with an m-file script language that is mostly compatible with MATLAB. Both alternatives can replace MATLAB in many circumstances. While a good deal of the content of this book will also apply to both Octave and LabVIEW MathScript, it is not guaranteed to work in exactly the same manner. Differences and comparison between MATLAB and Octave are presented in Comparing Octave and MATLAB.
- 1 A Tutorial Introduction
- 2 Basic MATLAB Concepts
- 3 Data Storage and Manipulation
- 4 Graphics
- 5 M-file Programming
- 6 Numerical Manipulation
- 7 More advanced I/O
- 8 Examples
- 9 Object Oriented Programming
- 10 An alternative to MATLAB: Octave
- 11 Toolboxes and Extensions
- 12 Matlab in medicine
- 13 References
- 14 External links
- 15 Other Wikibooks
- 16 Organization
A Tutorial Introduction
Basic MATLAB Concepts
- File Naming conventions
- Basic Reading and Writing data from a file
Data Storage and Manipulation
Data Types and Operators on Point Values
Arrays and Matrices
- What is a handle?
- Figure handles
- Axis handles
- Other types of handles
It is the Matrix laboratory after all.
- Systems of linear equations
- Row reduced echelon form
- Coffactor, minor
More advanced I/O
Different versions of MATLAB handle this differently. We will focus on versions 6.5 and 7.x, primarily on MATLAB 7.x since it is the latest. A note will appear when the procedure is different for ver. 6.
- Moving Average
- Alpha Beta
- PSD estimation
- Markov Processes
- Queuing Theory
See "Phase vocoder and encoder in MATLAB" for an example phase vocoder and the corresponding sound sample encoder in MATLAB.
Object Oriented Programming
MATLAB as well as Octave have object oriented capabilities. Yet, technically it is not fully an object oriented language.
An Object Oriented Language(OOL) has three components: 1. Polymorphism 2. Inheritance 3. Encapsulation
Octave can be extended by adding new objects. Those objects can overload the operators like e.g. assignment, slicing, comparison.
While in MATLAB, this can be done with m-script, in Octave new objects are implemented as C++ classes. A simple example of how objects can be added to Octave can be found here.
A short presentation of Octave and its history.
The most important differences between Octave and MATLAB that anyone willing to use Octave instead of MATLAB should be aware of.
Toolboxes and Extensions
The toolboxes are pretty good if you can afford them. In version 7 there are a lot of toolboxes.
- GUIDE allows the creation of interactive user interfaces.
- Simulink is for modeling, simulating and analysing systems.
- Psychtoolbox is a set of tools that aid in vision research.
- Distributed computing- The distributed computing toolbox is a set of tools that aid in distributing models over a cluster.
- Optimization- The optimization toolbox includes various algorithms for minimization.
Matlab in medicine
„Image Processing in Optical Coherence Tomography using Matlab” is a book which will introduce you to subtleties related to the implementation of selected fragments of algorithms, the notation of some of them in the Matlab environment has been given. The presented source code is shown only in the form of example of implementable selected algorithm. The book is addressed to ophthalmologists , IT specialists and students involved in the development of applications designed for automation of measurements for the needs of medicine.
- MATLAB documentation from The MathWorks.
- MATLAB programs compilation from 'Matlab programs for Engineering Students'.
- MATLAB at literateprograms.org
- ControlTheoryPro.com MATLAB Category
- Processing in Optical Coherence Tomography using Matlab
- programs compilation for Engineering Students
A number of other wikibooks use MATLAB to teach their subjects. The following wikibooks make use of MATLAB: