MATLAB Answers

delete locally outliers with window size

조회 수: 1(최근 30일)
Alejandro Fernández
Alejandro Fernández 2020년 8월 31일
편집: Bruno Luong 2020년 8월 31일
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?

답변(1개)

Bruno Luong
Bruno Luong 2020년 8월 31일
편집: Bruno Luong 2020년 8월 31일
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)

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by