%% Sort Matrix Rows in Ascending Order
% Create a matrix and sort each of its rows in ascending order.

A = [3 6 5; 7 -2 4; 1 0 -9]

%

B = sort(A,2)

% Copyright 2015 The MathWorks, Inc.