✍️ In this tutorial, we will learn how to create a matrix or vector in MATLAB. Matrices are fundamental to MATLAB. Therefore, we need to become familiar with matrix generation and manipulation.

In this video, we are going to defining a matrix, extracting submatrices, transpose, and concatenation matrices. Also, we will see how to create larger matrices with predefined MATLAB functions (e.g. zeros, ones, eye, diag, rand), using generating linearly space vectors (linspace), and determining the size of matrices/vectors in MATLAB.

For more MATLAB videos and projects please subscribe to our channel and follow us on:


The music of this video:

♫ “Everything Is Fine” by Sir Cubworth is free licensed ♫

♫ “Borderless” by Aakash Gandhi is free licensed ♫

♫ “All I’ve Ever Felt All At Once” by Late Night Feeler is free licensed ♫

♫ “Fresh Fallen Snow” by Chris Haugen is free licensed ♫


This Video is:

● Authored and Recorded by Stefan Lorenz

● Edited and reviewed by Mehdi Moradi