%% Smallest Vector Elements
% Compute the smallest 3 elements of a vector.

A = 1:10;
B = mink(A,3)

% Copyright 2012 The MathWorks, Inc.