%% Remove Columns Containing Outliers
% Create a matrix containing two outliers, and remove the columns containing them.

A = magic(5);
A(4,4) = 500;
A(5,5) = 500;
A
B = rmoutliers(A,2)

% Copyright 2018 The MathWorks, Inc.