Other useful MATLAB functions
For vectors, to find the maximum and minimum values of the vector x, we use the command/function max(.) and min(.)
To find the summation and the production values of the vector x, we use the command/function sum(.) and prod(.)
For vectors, to sorts the elements of a given vector x in ascending order arrange without or with reputation, we use the command/function unique(.) and sort(.)
Example :
Again, to sorts the elements of a given vector x in descending order, we use the command/function sort(.,'descend')
The mean of a vector, also known as the average equals the sum of the vector elements divided by the number of elements in the vector, we use the command/function mean(.)
Note :
You can get information about the dimension of a vector using command/function length(.)