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

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

% Copyright 2012 The MathWorks, Inc.