Fill outliers without a loop for each rows
2 views (last 30 days)
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,
matrix(i,:) = filloutliers(matrix(i,:),"nearest","median")
Not sure if it is the correct way but it surely takes so much time. Do you have any optimal way?