%% Detect Outliers with Sample Points
% Create a vector of data containing an outlier. Find the outlier relative to a time vector corresponding to the data.

A = [60 59 49 49 58 1000 61 57 48 62];
t = datetime(2017,1,1,0,0,0) + hours(0:9);
TF = isoutlier(A,'SamplePoints',t)

% Copyright 2012 The MathWorks, Inc.