Random vector

MATLAB allows you to create an [1] arbitrary vector or called (irregular, random) vector in three ways, containing different numbers.

• Each element in the vector with the order

• All the elements inside a square bracket and between each element and the other space

• All the elements inside a square bracket and between each element and the other comma,

Example

Fig 1.2. Different methods to create a random vector