How to remove outlier by 2.5 standard deviations from the mean?

조회 수: 12 (최근 30일)
nai chen yeh
nai chen yeh 2020년 3월 2일
댓글: Asger Emil Joergensen 2021년 5월 21일
I'm really new to Matlab, and hope someone can help me!
I tried to use the function 'filloutliers' to remove and replace the outliers, but i want to detect outliers by 2.5 standard deviation instead of 3 (default).
Is it possible to do that by filloutliers, or should i use other functions?
i saw someone used plot to remove outliers, but i don't know how.
Looking forward to be answered, thanks in advance!

채택된 답변

Adam
Adam 2020년 3월 2일
Looking at the help in
doc filloutliers
this should work:
filloutliers(A,'center','mean','ThresholdFactor', 2.5)
replacing A with whatever your array is called.
  댓글 수: 2
Asger Emil Joergensen
Asger Emil Joergensen 2021년 5월 21일
Hello
What replaces the oulier in this case? The computed mean value?

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Curve Fitting Toolbox에 대해 자세히 알아보기

태그

제품


릴리스

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by