Dear All,
I was read rmoutliers documentation carefully and want to use it in order to remove outliers' values in a matrix (namely FORCHECK). Actually I choose rmoutliers because rmoutliers detect outliers in each column or variable of A separately and removes the entire row.
Here is my code:
FFF = rmoutliers(FORCHECK,'percentiles',[0 90]);
I wanted to define outlier points as the point that is above the 90th percentile. But I got this error:
Error using matlab.internal.math.rmMissingOutliersVarargin>issueError
(line 137)
Dimension must be 1 or 2.
Error in matlab.internal.math.rmMissingOutliersVarargin>getDim (line
129)
issueError(funName,'DimensionInvalid');
Error in matlab.internal.math.rmMissingOutliersVarargin (line 47)
[opts,startNV] =
getDim(funName,opts,startNV,dimIn,numargs,doOutliers);
Error in matlab.internal.math.rmMissingOutliers>parseInputs (line 100)
opts =
matlab.internal.math.rmMissingOutliersVarargin(funName,A,opts,...
Error in matlab.internal.math.rmMissingOutliers (line 13)
opts = parseInputs(funName,A,varargin{:});
Error in rmoutliers (line 58)
[B,I] =
matlab.internal.math.rmMissingOutliers('rmoutliers',A,varargin{:});
How can I do?

 채택된 답변

Steven Lord
Steven Lord 2020년 4월 1일

0 개 추천

The 'percentiles' option for rmoutliers, isoutlier, and filloutliers was introduced in release R2019a. You indicated you're using release R2018b, one release before that.

추가 답변 (1개)

the cyclist
the cyclist 2020년 4월 1일

1 개 추천

Running this
load FORCHECK.mat
FFF = rmoutliers(FORCHECK,'percentiles',[0 90]);
worked just fine for me.
Maybe just restart MATLAB, in case you somehow have some other FORCHECK defined in your workspace?

댓글 수: 1

BN
BN 2020년 4월 1일
Dear the cyclist,
As you said I restarted Matlab and even use clear all, but still I get this error:
I don't know what to do !

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

카테고리

도움말 센터File Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

제품

릴리스

R2018b

태그

질문:

BN
2020년 4월 1일

답변:

2020년 4월 1일

Community Treasure Hunt

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

Start Hunting!

Translated by