Minimum and Maximum Value
The MATLAB has built-in functions for numerous statistics. For illustration, min and max to find the minimum or maximum value in a data set.
>> x = [9 10 10 9 8 7 3 10 9 8 5 10];
>> min(x)
ans =
3
>> max(x)
10