MATLAB – What is it & why you need it
MATLAB is a widelyused software program that is found in many industries ranging from engineering to finance. Users love it because it’s easy to use and produces high quality graphics. All you have to do to get started is learn to code in MATLAB.
This course will teach you just that! We will start from the very beginning by introducing the desktop environment and work our way up to more complex topics like nested for loops. We’ll cover lots of examples and work through all of them step by step. Unlike many instructors, I don’t assume you know more than you do.
Why this course instead of other online MATLAB courses?
I have taught MATLAB many, many times. I know what works for students and what doesn’t. This course is structured differently from others available online. Other instructors just show themselves typing code in MATLAB as they explain the topics. I don’t think that’s the best way for you to learn.
In this course, we will have a brief lecture with slides discussing the concepts. You will also be provided with a downloadable booklet of examples for each chapter and we will work through them together. This gives you the opportunity to code while having someone walk you through it at the same time.
The only way to learn coding is to write code yourself so I have created 13 quizzes for you to test your knowledge. Don’t worry though, video solutions are provided in case you get stuck.
Another benefit of this course is the rigor of the examples and quizzes. I don’t always give simple one step problems. Many of the problems you will work will require a combination of topics and steps, allowing you to further enhance your skills.
Here’s what you’ll learn…
Matrices and Vectors
2D Plotting
Userdefined functions
Logical statements: ifelseif, switchcase
Looping techniques: for and while loops
And more!
Let’s take a closer look at what comes with the course…
Downloadable items:
Lecture slides for each chapter to give you the background you need for each topic (5 Chapters)
Booklet of examples for each chapter to allow you to practice on your own or along with me in the videos
Quizzes (13 of them)
Videos:
Lecture videos featuring detailed explanations of all topics
Explanations of all the examples to increase your comprehension
Solutions to all quizzes and exams in case you get stuck
And just to make sure this class will work for you…
Fundamental topics from calculus and physics are used so it is helpful (but not required) to know basics like vectors, derivatives, and integrals.
Let’s get started…
Enroll Now! There’s no better time than now!
Vectors and Matrices

1Slides and Examples
This lecture consists of the downloadable slides and examples for Section 1.

2MATLAB Desktop Environment
In this lecture we will cover the MATLAB Desktop Environment. You will learn how to customize the environment to your preferences.

3MATLAB Desktop Environment Walkthrough
This video covers a MATLAB Desktop Environment Walkthrough

4Assigning Variables
We will cover what a variable is and how to assign values to a variable name.

5Assigning Variables Examples
We will discuss several examples of assigning variables.

6Variable Names and Type Casting
You'll learn the requirements for variable names and how to do type casting.

7Variable Names and Type Casting Examples
This video consists of examples of naming variables and type casting variables.

8Expressions & Formatting
Here we will cover the basics of creating expressions and different formatting options.

9Expressions and Formatting Examples
Let's walkthrough some examples of creating expressions and changing the format.

10Quiz 1
This lecture consists of quiz 1. Work this quiz and then you can check your work using the video solution.

11BuiltIn Functions & help
We will discuss the use of builtin functions and using the help menu.

12BuiltIn Functions & Help Examples
Examples of builtin functions and the help menu.

13Relational Expressions
Learn about relational expressions like less than, greater than, equivalent, etc.

14Relational Expressions Examples
Examples covering relational expressions.
Basics of MATLAB Programming

15Creating a Row Vector
Learn about row vectors and how to create them.

16Linspace, Logspace and Concatenation
A continuation on creating row vectors. This time we will use the functions linspace and logspace. We'll also cover concatenation.

17Linspace, Logspace & Concatenation Examples
Examples on creating row vectors.

18Quiz 2
Quiz 2 and its video solution. Download the quiz and give it a try!

19Column Vectors
Here we'll cover creating column vectors.

20Column Vectors Examples
Examples covering column vectors.

21Matrices
Let's discuss matrices and how to create and use them.

22Matrices Examples
Examples about matrix creation.

23Matrix Dimensions
We cover matrix dimensions and various builtin functions used to determine dimensions.

24Matrix Dimensions Examples
Examples of matrix dimensions.

25Quiz 3
Download quiz 3, work it out and see what you get. Then compare your result to mine in the video. Good luck!

26Min, Max
Let's find the minimum and maximum of vectors and matrices.

27Sum & Product
Covers finding the sum and product of vector and matrix elements.

28Min, Max, Sum & Product Examples
Examples of min, max, sum, and prod.

29Matrix Math
We'll discuss matrix math methods.

30Matrix Math Examples
Examples of matrix math.

31Element by Element Operations
Covers element by element operations. A must know topic for working with vectors and matrices.

32Element by Element Operations Examples
Examples of element by element operations and why we need them.

33Matrix Multiplication & Vector Operations
Learn how to multiply matrices and perform vector operations like dot product, magnitude and more.

34Matrix Multiplication & Vector Operations Examples
Examples of matrix multiplication and vector operations.

35Quiz 4
Work out quiz 4 on your own and then compare your results to mine.

36Matrix Inverse & Logical Vectors
Matrix inverse will be used to solve a system of equations. Logical vectors are also covered.

37Matrix Inverse and Logical Vectors Examples
Examples of matrix inverse and logical vectors.

38Quiz 5
Use quiz 5 to test your knowledge. Code up the solution in MATLAB and then compare your results to mine!
Logical Statements

39Slides, Examples & Data Files
Downloadable files needed for this section. The data files will be used when we learn how to load a data file they should be saved in your working directory.

40Script Files & Comments
After this lecture you'll be able to create and run a script file.

41Script Files & Comments Examples
Examples of script files and commenting your code.

42Input & Display
After watching this video you'll be able to collect data from the user using the input function. You'll also learn about the display command.

43Input & Display Examples
Examples using the input and display functions.

44Formatted Print Statements
This video explains the use of fprintf. This will allow you to create formatted print statements.

45Formatted Print Statements Examples
Examples of fprintf

46Quiz 6
Try out quiz 6 to test your understanding of fprintf. Check your results against mine.

47Scripts
We'll cover more detailed information about scripts and how they are used.

48Scripts Examples
Examples of scripts.

49Plotting
You'll know how to create 2D plots allowing you to visualize your data.

50Plotting Examples
Plotting examples.

51Plot Labels
Learn how to enhance your plots with plot labels.

52Plot Labels Examples
Examples showing the use of plot labels.

53Plot Functions
We'll cover other helpful plot functions to enhance your plots.

54Plot Functions Examples
More examples of plotting.

55Load & Save
After this lecture you'll be able to load and save data files.

56Load & Save Examples
Examples of loading and saving data files. You will need the downloadable data files found at the beginning of this section.

57Quiz 7
Download test_data.txt to your working MATLAB directory and then test out your knowledge on quiz 7. My solution is given.

58UserDefined Functions
After this video you'll be able to create your own userdefined functions.

59UserDefined Functions & Local Variables
This lesson covers more discussion of userdefined functions. We also cover local variables.

60User Defined Functions and Local Variables Examples
Examples for user defined functions and local variables.

61Quiz 8
Download the data file and test your knowledge with Quiz 8. Compare your results to mine.
Looping

62Slides and Examples
Downloadable slides and examples for Section 4.

63Relational Expressions
We'll cover relational expressions like <, >, <=, >=, etc.

64Relational Expressions Examples
Examples over relational expressions.

65If Statement
You'll be able to write simple if statements after this video.

66If Statement Examples
Examples of if statements.

67If ElseIf Statements
After this video, you'll be able to create more complex if statements using if elseif.

68If ElseIf Statements Examples
Examples of if elseif.

69Quiz 9
Test your knowledge of if statements.

70Switch Case
Learn how to use switch case to create different paths in your code.

71Switch Case Examples
Switch case examples.

72Menu Function
Learn how to create a pop up menu where users can select from several options.

73Menu Function Examples
Examples of the menu function.

74Quiz 10
Try out your knowledge of the menu function.