50% developed

MATLAB Programming

From Wikibooks, open books for an open world
Jump to navigation Jump to search

Loupe light.svg

Introduction[edit | edit source]

MATLAB is an abbreviation for "MATrix LABoratory". Originally, it was a simple interactive matrix calculator in early 1980's. Gradually, it evolves into 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. While other programming languages mostly work with numbers one at a time, MATLAB is designed to operate primarily on whole matrices and arrays. All MATLAB variables are multidimensional arrays, no matter what type of data. A matrix is a two-dimensional array often used for linear algebra.

MATLAB are also designed to be equipped with toolboxes. A toolbox is a package of custom functions and/or classes which are generally for a specific topic (such as control system, signal processing or even deep learning). The toolboxes are either provided officially by Mathworks and require a license, others can be downloaded for free from the File Exchange.

Finally, this book assumes that you have access to latest MATLAB version but if you didn't have , no worries!
There are online IDE that are very similar to MATLAB :
Click this link to try the free version of MATLAB: | Octave-Online.

MATLAB Programming Chapters[edit | edit source]

MATLAB mesh sinc3D.svg
Chapter 1: Matlab Introductions .

Fundamentals of MATLAB
MATLAB operator
Basic MATLAB commands
Numbers and Booleans75%.svg
Complex Numbers75%.svg
Portable Functions50%.svg
The MATLAB command prompt50%.svg
Reading and writing data files50%.svg
File Name Types

Chapter 2: Vector and matrices .

Vector and Matrices
Special Matrices
Operation on Matrices
Operation on Vectors

Jagged Array Representation.png
Chapter 3: Array

Introduction to array operations
Vectors and Basic Vector Operations
Mathematics with Vectors and Matrices
Struct Arrays
Cell Arrays
Sparse Matrices

Chapter 4: Graphical plotting .

Polar Plot
Semilogx or Semilogy
Bode Plot
Nichols Plot
Nyquist Plot

Software structure chart.jpg
Chapter 5: MATLAB programming structure .

Using Handles25%.svg
What is a handle?
Figure handles
Axis handles
Other types of handles
Annotating Plots25%.svg
Inserting Newlines into Plot Labels

WOA09 1000m AOU AYool.png
Chapter 6: Advance MATLAB functions .

Numerical Manipulation00%.svg
Advanced I/O00%.svg
Object Oriented Programming00%.svg
Applications and Examples00%.svg
Toolboxes and Extensions00%.svg

Digital rain animation small letters shine.gif
Chapter 7: M-Files coding.

The Input Function50%.svg
Control Flow75%.svg
Loops and Branches25%.svg
Error Messages75%.svg
MATLAB Caveats00%.svg
Inserting Newlines into Disp Warn and Error
Debugging M Files50%.svg

Chapter 8: GUI Programming MATLAB

Graphical User Interface00%.svg
GUI to get a file or directory00%.svg

Chapter 9: Alternatives to MATLAB.

Alternatives to MATLAB
Differences between Octave and MATLAB
Julia for MATLAB Users

DALL·E - Photos of side view of programmer discovering software's Easter Egg inside her program when debugging her programs.png
Bonus Chapter : MATLAB's easter egg

Easter Eggs

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: