%% Sort Matrix Columns in Descending Order
% Create a matrix and sort its columns in descending order.

A = [10 -12 4 8; 6 -9 8 0; 2 3 11 -2; 1 1 9 3]

%

B = sort(A,'descend')

% Copyright 2015 The MathWorks, Inc.