MATLAB: Isnan input arguments of type ‘cell’

isnanMATLAB

I am getting a cell error
a={'2' [NaN] '4' '5'}
isnan(a)
Undefined function 'isnan' for input arguments of type 'cell'.
How can I get around this error

Best Answer

cellfun(@isnan,a)