Lecture 1 / 12
Lecture 01 ยท Fundamentals

Introduction to MATLAB & Setup

Beginner ~50 min

What is MATLAB?

MATLAB (MATrix LABoratory) is a high-level programming language and interactive environment developed by MathWorks for numerical computing, data analysis, algorithm development, and visualization. It is widely used in engineering, science, and academia.

Why MATLAB?

  • Built-in matrix and array operations
  • Outstanding visualization tools
  • Rich ecosystem of toolboxes
  • Industry standard in engineering and research

Installation & Setup

Download MATLAB from mathworks.com. Use the online version (MATLAB Online) if you prefer no installation.

MATLAB Command Window
>> disp('Hello, MATLAB Mastery!')
Hello, MATLAB Mastery!

>> version
ans = 
    '9.14.0.XXXXXX (R2023a)'
๐ŸŽฏ Exercise 1.1

Open MATLAB, run the command ver to see your version, and create a simple script that prints your name and today's date using datestr(now).

Lecture 02 ยท Fundamentals

Variables & Matrices

Beginner ~45 min

Matrices: The Core of MATLAB

In MATLAB, everything is a matrix. A single number is a 1x1 matrix.

% Row vector
r = [1 2 3];
% Column vector
c = [1; 2; 3];
% 2x2 Matrix
M = [1 2; 3 4];

Creating Special Matrices

  • zeros(3,3): 3x3 matrix of zeros
  • ones(2,4): 2x4 matrix of ones
  • eye(3): 3x3 Identity matrix
Lecture 03 ยท Fundamentals

Operators & Expressions

Beginner ~50 min

Element-wise vs Matrix Operations

This is a critical concept in MATLAB. Use a dot . for element-wise operations.

A = [1 2; 3 4];
B = [2 2; 2 2];

C1 = A * B; % Matrix multiplication
C2 = A .* B; % Element-wise multiplication ([1*2 2*2; 3*2 4*2])
Lecture 04 ยท Fundamentals

Control Flow

Beginner ~40 min

Conditional Logic

if x > 0
    disp('Positive')
elseif x < 0
    disp('Negative')
else
    disp('Zero')
end
Lecture 05 ยท Fundamentals

Scripts & Functions

Beginner ~50 min

Creating a Function

function area = calcCircleArea(r)
    area = pi * r^2;
end
Lecture 06 ยท Core Concepts

Arrays & Matrix Operations

Intermediate ~55 min

Linear Algebra

A = [1 2; 3 4];
inv(A) % Inverse
det(A) % Determinant
eig(A) % Eigenvalues
Lecture 07 ยท Core Concepts

Plotting & Visualization

Intermediate ~60 min

2D Plotting

x = 0:0.1:10;
y = sin(x);
plot(x, y, 'r--', 'LineWidth', 2);
title('Sine Wave');
xlabel('Time');
ylabel('Amplitude');
grid on;
Lecture 08 ยท Core Concepts

Data Import & Export

Intermediate ~45 min

Reading Data

T = readtable('data.csv');
data = T.Variables;
Lecture 09 ยท Advanced

Symbolic Math

Advanced ~50 min

Solving Equations

syms x
eqn = x^2 + 5*x + 6 == 0;
S = solve(eqn, x);
Lecture 10 ยท Advanced

Programming Structures

Advanced ~50 min

Cell Arrays & Structs

C = {1, 'text', magic(3)};
S.name = 'Project';
S.value = 100;
Lecture 11 ยท Advanced

Simulink & App Designer

Advanced ~60 min

Introduction to graphical programming and building interactive apps within MATLAB.

Lecture 12 ยท Capstone

Capstone: Engineering Analysis

Advanced ~120 min

Process a large dataset of sensor readings, filter noise, and generate a multi-panel visualization report.

% Project steps:
% 1. Import raw sensor data
% 2. Apply a moving average filter
% 3. Compute statistical metrics
% 4. Export findings to a PDF report