Hello everybody,
I have a matrix e.g 45500x24, and for each row, I would like to check the outliers and fill with the nearest non-outlier value.
Normally I have been doing,
for i=1:length(matrix)
matrix(i,:) = filloutliers(matrix(i,:),"nearest","median")
end
Not sure if it is the correct way but it surely takes so much time. Do you have any optimal way?

 채택된 답변

David Hill
David Hill 2022년 10월 20일

0 개 추천

Try this:
matrix= filloutliers(matrix,'nearest','median',2);

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

질문:

2022년 10월 20일

답변:

2022년 10월 20일

Community Treasure Hunt

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

Start Hunting!

Translated by