[cmean, indice_mean]=mean(IRR(:,4), ('omitnan'));
I have been analysing a dataset, whereas I have noticed that for some statistical operations such as "min", "max", and also "mode", there are not problems if datastes contains blank spaces ("NaN"), nonetheless, for "median" as well as "mean" the statistical MATLAB functions present some issues, even if I include in the code 'omitnan'. The structure portrayed at "First Block" works correctly, nevertheless, "Second block" does not work properly presenting some issues. Would you helping me with this?
I hope you can help me to cope with this problem.