# MATLAB Programming

[MATLAB Programming\|/MATLAB Programming]m]
Chapter 1: MATLAB ._.
    Fundamentals of MATLAB
    MATLAB Workspace
    MATLAB Variables
    *.mat files
Chapter 2: MATLAB Concepts
    MATLAB operator
    Data File I/O
Chapter 3: Variable Manipulation
    Numbers and Booleans
    Strings
    Portable Functions
    Complex Numbers
Chapter 4: Vector and matrices
    Vector and Matrices
    Special Matrices
    Operation on Vectors
    Operation on Matrices
    Sparse Matrices
Chapter 5: Array
    Arrays
    Introduction to array operations
    Vectors and Basic Vector Operations
    Mathematics with Vectors and Matrices
    Struct Arrays
    Cell Arrays
Chapter 6: Graphical Plotting
    Basic Graphics Commands
    Plot
    Polar Plot
    Semilogx or Semilogy
    Loglog
    Bode Plot
    Nichols Plot
    Nyquist Plot
Chapter 7: M File Programming
    Scripts
    Comments
    The Input Function
    Control Flow
    Loops and Branches
    Error Messages
    Debugging M Files
Chapter 8: Advanced Topics
    Numerical Manipulation
    Advanced File I/O
    Object Oriented Programming
    Applications and Examples
    Toolboxes and Extensions
Chapter 9: Bonus chapters
    MATLAB Benefits and Caveats
    Alternatives to MATLAB
    [MATLAB_Programming/GNU_Octave|What is Octave= (8) hsrmonic functions]
    Octave/MATLAB differences

## Forewords

MATLAB is a mathematical software package which can be used for analysing and solving mathematical and engineering problems such as numerical computations, graphs plotting, programming and more. MATLAB treat all the variables in form of scalar , vector or matrices form. For this book of MATLAB Programming, it is aimed to give a new MATLAB users have an overview of how to use the basic and intermediate level of MATLAB and of course to keep this free for students who might be using this book for their course. To start off, MATLAB is a scripting language (Note that I didn't mentioned it is programming language) for data analysis, think of it as a super-powered programmable calculator with useful default functions that are built specifically for math applications.
The name MATLAB itself 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. 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 expensive 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. I believe that most of the examples are also can be run using Octave as the later tried to compatible matching the programming syntax of MATLAB (for most of time)
Click this link to try the free version of MATLAB: | Octave-Online.

## MATLAB Programming Chapters

| | Chapter 1: MATLAB Introductions . | Fundamentals of MATLAB Basic MATLAB commands Examples of MATLAB Command File Name Types |
| | Chapter 2: MATLAB Concepts | MATLAB operator Comments |
| Causa y efecto paralelo tt | Chapter 3: Variable Manipulations | Numbers and Booleans Strings Complex Numbers |
| | Chapter 4: Vector and Matrices | Vector and Matrices Special Matrices Operation on Matrices Operation on Vectors Sparse Matrices |
| | Chapter 5: Array | Arrays Introduction to array operations Vectors and Basic Vector Operations Mathematics with Vectors and Matrices Struct Arrays Cell Arrays |
| | Chapter 6: Graphical plotting . | Plot Polar Plot Semilog Loglog Bode Plot Nichols Plot Nyquist Plot |
| Codomän | Chapter 7: Functions . | Portable Functions What is a handle? Using Handles Figure handles Axis handles Other types of handles Inserting Newlines into Plot Labels |
| | Chapter 8: Advance MATLAB functions . | Numerical Manipulation Reading and writing data files Advanced I/O Object Oriented Programming Applications and Examples Toolboxes and Extensions Order Differential Equations |
| | Chapter 9: M-Files coding. | Scripts The Input Function Control Flow Loops and Branches Error Messages Inserting Newlines into Disp Warn and Error Debugging M Files |
| | Chapter 10: GUI Programming MATLAB | GUIDE App Designer GUI to get a file or directory |
| | Bonus Chapters | Easter Eggs MATLAB Benefits and Caveats History of MATLAB Authors & Contributors Alternatives to MATLAB |

## References

* MATLAB documentation from The MathWorks.
* MATLAB programs compilation from 'MATLAB programs for Engineering Students'.
* MATLAB Programming Language Origin, Advantages, Implementation from Bobs SEO

## External links

* ControlTheoryPro.com MATLAB Category
* Processing in Optical Coherence Tomography using Matlab
* How to create GUI button in MATLAB
* Free tutorials to learning MATLAB

## Other Wikibooks

A number of other Wikibooks use MATLAB to teach their subjects. The following Wikibooks make use of MATLAB:
* Signals and Systems
* Control Systems