MATLAB Answers

help highlight adjacent values

4 views (last 30 days)
Lev Mihailov
Lev Mihailov on 22 Aug 2019
Data=[20 21 20 21 21 90 92 93 90 93 90 59 30 102 30 21 22 23 21]';
x = 1:19';
DataTemp=Data;
[TF,L,U,C] = isoutlier(DataTemp);
plot(x,DataTemp,x(TF),DataTemp(TF),'x',x,L*ones(1,19),x,U*ones(1,19),x,C*ones(1,19))
legend('Original Data','Outlier','Lower Threshold','Upper Threshold','Center Value')
TF1 = isoutlier(DataTemp,'mean')
TF2 = islocalmax(DataTemp 'FlatSelection', 'all');
Is it possible to separate separately the areas of closely lying values?
ps I did the operations and I am given on the graph 6 values ​​of closely lying (similar to each other) can I write them separately?
Data=[12 121 122 12 12 12 12 12 12 12 63 65 70 70 70 70 71 12 12 12 12 12 12];
here is another dataset, here the problem is at the beginning of 2 outliers, but I need the following values

  0 Comments

Sign in to comment.

Answers (0)

Sign in to answer this question.

Tags

Products