MATLAB: Find NaN in a cell array and only delete the NaNs

cell arrays

How can I delete NaN s from a cell array (only the NaN elements not the whole column or row)?

Best Answer

results(j)= sqrt( mean(array{j}.^2,'omitnan') );