how can i remove elements of matrix that are greater mean value by a factor of 3 times standard deviation?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Joseph
am 24 Feb. 2015
Bearbeitet: Joseph
am 24 Feb. 2015
i have a matrix E(150x18x6616) and matrix M(150x18) which is mean value of E ( M(i,j) = nanmean(E(i,j,:))) and S(150x18) which is standard deviation of E ( S(i,j) = nanstd(E(i,j,:))), how can i remove elements of matrix that are greater than mean value M(i,j) by a factor of 3 standard deviation?
0 Kommentare
Akzeptierte Antwort
Andrei Bobrov
am 24 Feb. 2015
Bearbeitet: Andrei Bobrov
am 24 Feb. 2015
E(bsxfun(@and,bsxfun(@gt,E,M),S==3)) = nan;
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu NaNs finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!