%% Smallest and Largest Elements of Matrix Rows
% Compute the smallest and largest elements of each row of a matrix.

A = magic(4)
[S,L] = bounds(A,2)

% Copyright 2012 The MathWorks, Inc.