Hi, I have a vector A (or could be a matrix) which contains finite values as well as NaNs. I want to compute the mean value of its non-NaN elements. What is the difference between mean(A,'omitnan') and nanmean(A) ? Thank you!
MATLAB: What is the difference between mean(A,’omitnan’) and nanmean(A)
arrayMATLABmatrixmeannannanmeanomitnanvector
Best Answer