Hello,
I need to sum some multidimentional arrays after SPMD processing. This arrays contains also NaNs, but I need to computer a proper mean value of them later. Since:
>> nansum(NaN + NaN)ans = 0
This case will affect the result. How to perform such a summing, but sum of ONLY NaNs has to be equal to NaN (not zero!)?
Best regards, Alex
Best Answer