NANMEANs for each (n,m) position over several matrices with the same size
Show older comments
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!
Accepted Answer
More Answers (0)
Categories
Find more on Logical in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!