MATLAB: Mean doesn’t work

many rows and many colums meanMATLABmeansum

Hi, I have doubt in mean. if we have more than 10000 rows why mean doesn't work actually sum also does not work. for example, All_measured = 43472*30 double and the mean formula: mean(All_measured ,2) but the answer is 43472*1 full of NaN Any suitable ideas are very appreciable.

Best Answer

Try this:
mean(All_measured ,2, 'omitnan')
or:
nanmean(All_measured ,2)
Related Question