removing spikes from test data.

조회 수: 31 (최근 30일)
hao liu
hao liu 2018년 9월 19일
댓글: Muhammad Waqar 2020년 9월 16일
I was trying to remove the spikes from the test data. I used the medfilt1 method like below: Data_B = medfilt1(Data,7); the left is original data, the right is after process. but it did not work very well. other method like filloutliers also has been tried. I also tried to use the medfilt1 twice, but it's still nearly the same. what I want is to figure out the trend of the test data, the processed data has already showed the trending but there were still some spikes in the figure which is annoying. how should I do to remove the spikes? thanks in advance:)
  댓글 수: 2
Greg Dionne
Greg Dionne 2018년 9월 24일
Would you be willing to post your data?
Sher Akbar
Sher Akbar 2019년 12월 30일
search literature for this purpose... basically we dont remove spikes we do replace them with the normal values.

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

답변 (2개)

Star Strider
Star Strider 2018년 9월 19일
If you have the newly-released R2018b, see if the rmoutliers (link) function will do what you want.
If you have R2017a or later, experiment with the isoutlier (link) and filloutliers (link) functions to determine if they will do what you want.

Arihant Sureka
Arihant Sureka 2018년 9월 19일
Hi
Maybe you can refer to this link:
<https://in.mathworks.com/help/curvefit/smooth.html Data Smooth>
  댓글 수: 1
Muhammad Waqar
Muhammad Waqar 2020년 9월 16일
Smooth is not recommended. It is because Smooth function will also damage the physical features of the signal.

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

카테고리

Help CenterFile Exchange에서 Smoothing and Denoising에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by