MATLAB Tutorial

Tutorial Description Files
Introduction: Part 1

This tutorial covers the basics of MATLAB including:

  • MATLAB as a Calculator
  • 1-D Arrays
  • 2-D Arrays
  • Element-wise Operations
  • Colon (:) Operator
  • Strings: char Arrays
  • function_handle (@) Class
  • Scripts and Functions: M-Files
Slides.pdf
Handout.pdf

Script.m
Published Script.html
Function.m
Published Function.html

Assignment.pdf
Solution.m
Published Solution.html
Introduction: Part 2

This tutorial covers more advanced features of MATLAB including:

  • ND Arrays
  • Cell and Structure Arrays
  • Elements of Programming
    • if-elseif-else Statements: Flow Control
    • switch-case Statements: Flow Control
    • for Loop Statements
    • while Loop Statements
    • try-catch Statements: Error Handling
  • Plotting
Slides.pdf
Handout.pdf

Script.m
Published Script.html

Assignment.pdf
Solution.m
Published Solution.html

Bonus Material

MATLAB also allows symbolic computation through the Symbolic Toolbox. Symbolic functions enable you to (attempt to) solve problems analytically. I prepared a short tutorial that covers some of its basic functionalities. Download the M-file here: sym_tutorial.m.