I would like to find and remove outliers from a matrix but I use matlab2016b so i don't have rmoutliers. My matrix is A(1469,8) and i want to find outliers and remove them by column. I tried to build the equation. I tried the code below but there are 2 problems
1)The result of isOutlier(1469,8) is not right because are all zeros so I think that doesn't do the math by column.
2) The result of index is a double (11752,1) insted of a matrix with 8 columns
isOutlier = abs(A) > -3/(sqrt(2)*erfcinv(3/2))*median(abs(A - median(A)));