TF = isoutlier(A,method) on older MATLAB version (2011b) ?
6 次查看(过去 30 天)
显示 更早的评论
Hello, I was wondering if there is any way of using "isoutlier" function in older version of matlab say MATLAB 2011b or MATLAB 2016a ??? This would reduce my working time to program for "Outlier identification" Thank You.
-Aditya Deshmukh
0 个评论
回答(2 个)
Star Strider
2017-8-4
For R2016a, if you have the Signal Processing Toolbox, you can use the hampel (link) function, introduced in R2015b.
0 个评论
R.A. Alemán
2018-5-4
编辑:R.A. Alemán
2018-5-4
This is how you could implement it for previous Matlab versions:
function [av]=Isoutlier(FF)
mk=median(FF);
M_d=mad(FF,1);
c=-1/(sqrt(2)*erfcinv(3/2));
smad=c*M_d;
tsmad=3*smad
av=(abs(FF-mk)>=tsmad);
end
5 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Filter Analysis 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!