![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/353927/image.png)
delete locally outliers with window size
조회 수: 1 (최근 30일)
이전 댓글 표시
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?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/353924/image.png)
댓글 수: 0
답변 (1개)
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)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/353927/image.png)
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Logical에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!