%% Sort Vector in Ascending Order
% Create a row vector and sort its elements in ascending order.

A = [9 0 -7 5 3 8 -10 4 2];
B = sort(A)

% Copyright 2015 The MathWorks, Inc.