MATLAB: How to find a block containing NaN in cell

hi sir,i have cell of 10*10 cell which look like below double <5×10 double> <5×10 double> <5×10 double> <5×10 double> <5×10 double> <5×10 double> <5×10 double> <5×10 double>
i have to find in which 5×10 double NaN is present

Best Answer

A={[1 nan 2] [1 3 5] [nan nan 7] [9 7 2]}
out=cellfun(@(x) any(any(isnan(x))),A)