2.1 Creating Vectors

To create a row vector called x, containing of the numbers 1-4, you would simply type in the following in MATLAB: 

x = [1 2 3 4]

This demonstrates that to create a vector, you simply insert square brackets []. The same goes for creating matrices, but that is the topic of next video! 

Play media comment.