%% Matrix of Data
% Find outliers for each row of a matrix.
% Create a matrix of data containing outliers along the diagonal.

A = magic(5) + diag(200*ones(1,5))

%
% Find the locations of outliers based on the data in each row.

TF = isoutlier(A,2)

%
% Copyright 2012 The MathWorks, Inc.