I'm trying to use the rmoutliers (A, 'mean') function to remove outliers that are three standard deviations from the mean but when I use this function it comes up with multiple errors.

I'm trying to use rmoutliers to remove outliers three standard deviations from the mean for my data set. I imported the data set from an excel file into matlab using the readtable function and matlab output a 1537090 x 6 table. When a try to use FilteredData = rmoutliers(data, 'mean') it comes up with multiple errors. Does anyone know why this occurs? See below my code and the errors.

4 Comments

No worries, realised it was because my data has co-ordinates in it which the function can't read.
As the error mentioned, your data in column 1 is a cell array. You need to convert it to a type accepted by rmoutlier preferably a numeric type.
I think you forgot to read all the posting guidelines. Don't keep delaying an answer by forgetting to attach your csv file. I'm not going to try anything until I see that you've attached it. But do it only after you've read this link.

Sign in to comment.

Answers (0)

Categories

Asked:

on 22 Aug 2020

Commented:

on 23 Aug 2020

Community Treasure Hunt

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

Start Hunting!