필터 지우기
필터 지우기

Remove outliers or noise from 1D GIS data

조회 수: 1 (최근 30일)
NS
NS 2017년 9월 6일
편집: John D'Errico 2017년 9월 6일
Hi,
I want remove outliers or noise from my 1D GIS data which contain elevation change. I use below code from one example of mathworks to do this but results its not spatially smooth. Kindly suggest me to solve this issue.
%%%%%%%
%Percentile based outlier
% nth and ith percentile
percntiles = prctile(z,[10 90]);
outlierIndexes = z < percntiles(1) | z > percntiles(2);
%Extract outlier values
outliers = z(outlierIndexes);
%Extract non-outlier values
nonOutliers = z(~outlierIndexes);
%%%%%%%
Thanks
  댓글 수: 2
KSSV
KSSV 2017년 9월 6일
Have a look on inbuilt function smooth in matlab.
John D'Errico
John D'Errico 2017년 9월 6일
편집: John D'Errico 2017년 9월 6일
Without seeing your data, it is terribly difficult to know what you are doing wrong. For example, the above scheme will do reasonably well if applied to data that has no significant trend in it, yet it will be useless other times. We cannot know what is the problem, without the data.
So please attach your data as a .mat file to a comment, or edit your question to do so. If you are reluctant to post the data itself so we can use it, then attach a plot.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Statistics and Machine Learning Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by