TF = isoutlier(A,method) on older MATLAB version (2011b) ?
Mostrar comentarios más antiguos
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
Respuestas (2)
Star Strider
el 4 de Ag. de 2017
0 votos
For R2016a, if you have the Signal Processing Toolbox, you can use the hampel (link) function, introduced in R2015b.
R.A. Alemán
el 4 de Mayo de 2018
Editada: R.A. Alemán
el 4 de Mayo de 2018
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 comentarios
yang-En Hsiao
el 7 de Abr. de 2019
What is the FF? can it be a value? or vector?
Walter Roberson
el 7 de Abr. de 2019
FF should be a vector.
Anand Parikh
el 6 de Dic. de 2019
Can you please explain this function? What is the threshold to identify outliers and how variable 'c' is defiened ?
Alexander Lyapin
el 8 de Feb. de 2022
What is 'mad' function?
Walter Roberson
el 8 de Feb. de 2022
I wonder if it was "mean absolute deviation"?
Categorías
Más información sobre MATLAB en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!