%% Minimum and Maximum Values of Vector
% Simultaneously compute the minimum and maximum values of a vector.

A = [2 4 -1 10 6 3 0 -16];
[minA,maxA] = bounds(A)

% Copyright 2020 The MathWorks, Inc.