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.
Show older comments
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
Rhiannon Pace
on 22 Aug 2020
Rhiannon Pace
on 22 Aug 2020
Mohammad Sami
on 23 Aug 2020
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.
Image Analyst
on 23 Aug 2020
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.
Answers (0)
Categories
Find more on Tables in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!