%% Remove Outliers in Vector
% Create a vector containing two outliers, and remove them. TF allows you to identify which elements of the input vector were detected as outliers and removed.

A = [57 59 60 100 59 58 57 58 300 61 62 60 62 58 57];
[B,TF] = rmoutliers(A)
A(TF)

% Copyright 2018 The MathWorks, Inc.