MATLAB: How to remove the outliers

outliersplottngremoving

I have a sequence data and I assumed there are some outliers which us plott in my excel in the red colour of shading. I attach the xfiles of my data.
I have a question about how function of the matlab can detect dan delete those data in the red shading.
If any one can help, I would be appreciated.
Thanks

Best Answer

Take a look at the filloutliers and rmoutliers functions on this documentation page.