Matlab & Octave Information and Tutorials Help Center
Downloading Matlab or Octave
You can download your free copy of Matlab using the link:
https://www.mathworks.com/
(Note: The license for your copy of Matlab will expire 30 days after the end of the course)
You may also use Octave, which runs most Matlab programs and can be downloaded for free from the GNU Octave website.
Matlab/Octave Tutorials
If you are new to Matlab/Octave, we encourage you to do one or more of the following:
- Watch the Matlab tutorial videos by Mathworks below.
- Watch the Octave tutorial videos by Andrew Ng by clicking here.
- Download the following two files: tutorial.m and fibonacci.m .
- Save both files to the same directory (making sure they are in your Matlab/Octave folder) and then open tutorial.m (you can use any text editor). Make sure you have a Matlab or Octave window open. Go over the text of tutorial.m, copying and pasting commands into the Matlab/Octave window as you go along.
- When running files, simply type the name of the program into the command window e.g.
tutorialfor tutorial.m (Similarly for other .m files)
Here are some other tutorials and resources you may find useful as you are learning to program in Matlab/Octave:
- Just the basics
- More advanced tutorial
- Getting started with Matlab (PDF)
- Comprehensive Octave manual
MATLAB tutorial videos by Mathworks
Introduction to MATLAB:
Mathematical Operations in MATLAB:
Vectors in MATLAB:
- Creating Vectors via Concatenation
- Creating Uniformly Spaced Vectors (Colon Operator)
- Accessing Elements of a Vector
- Vector Arithmetic
Visualization in MATLAB:
Matrices and Arrays in MATLAB:
- Creating Matrices
- Matrix Multiplication
- Calculating Eigenvalues and Eigenvectors
- Statistical Functions with Matrices
- Array Creation Functions
-
Accessing Elements of an Array
- Array Size and Length
- Concatenating Arrays
Programming Constructs in MATLAB:
-
Using the MATLAB Editor
- For Loop
- Generating Random Numbers
- Logical Operators
- While Loop
- If-Else Statement
- Conditional Data Selection
Created Tue 9 Apr 2013 7:53 AM CEST
Last Modified Fri 1 May 2015 4:05 AM CEST
Last Modified Fri 1 May 2015 4:05 AM CEST