how can i remove elements of matrix that are greater mean value by a factor of 3 times standard deviation?
조회 수: 1 (최근 30일)
이전 댓글 표시
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
채택된 답변
Andrei Bobrov
2015년 2월 24일
편집: Andrei Bobrov
2015년 2월 24일
E(bsxfun(@and,bsxfun(@gt,E,M),S==3)) = nan;
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 NaNs에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!