NANMEANs for each (n,m) position over several matrices with the same size
이전 댓글 표시
Hi all,
I have a number of matrices with the same size. What I need is a nanmean for each position of the matrices over all matrices, i.e.:
A=[1 2 NAN;4 5 6;7 NAN 9] B=[NAN 2 3;NAN NAN 6;7 8 9] C=[NAN NAN NAN; 4 5 6;7 8 9]
Result:
(1,1) = nanmean(1 NAN NAN) (1,2) = nanmean(2 2 NAN) ... (3,3) = nanmean(9 9 9)
Thank you!
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 NaNs에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!