In MATLAB, the most basic data type is the numeric array. It can be a scalar, a 1-D vector, a 2-D matrix, or an N-D multidimensional array.
% a 1-by-1 scalar value
x = 1;
To create a row vector, enter the elements inside brackets, separated by spaces or commas:
% a 1-by-4 row vector
v = [1, 2...