%% Largest Vector Elements
% Compute the largest 3 elements of a vector.

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

% Copyright 2012 The MathWorks, Inc.