delete locally outliers with window size

1 Ansicht (letzte 30 Tage)
Alejandro Fernández
Alejandro Fernández am 31 Aug. 2020
Bearbeitet: Bruno Luong am 31 Aug. 2020
Hi, I have the indx vector and I need to remote locally outliers to delete the one I have into the circle, does someone know how?

Antworten (1)

Bruno Luong
Bruno Luong am 31 Aug. 2020
Bearbeitet: Bruno Luong am 31 Aug. 2020
load('indx.mat');
% Change windows size and threshold eventually
midx = medfilt1(indx,3); % This requires signal processing tbx
indx(abs(midx-indx)>10) = NaN; % replace outlier with NaN
plot(indx)

Kategorien

Mehr zu Matrix Indexing finden Sie in Help Center und File Exchange

Produkte


Version

R2020a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by