%% Minima in Matrix Rows
% Create a matrix of data, and compute the local minima for each row.

A = -25*diag(ones(5,1)) + rand(5,5);
TF = islocalmin(A,2)

% Copyright 2012 The MathWorks, Inc.