MATLAB: How to compare an input argument to a value

greater than

I imported data as a table and now I am trying to compare a cell to a value.
I am using the following : B{i,1}>20 and it continuously shows the error : Undefined operator ' >' for input arguments of type 'cell'.
Thank you for your help.

Best Answer

This means, that the contents of B{i,1} is a cell. You need something like B{i,1}{1}. Or convert the cell to a numerical array for easier operations. See cell2mat.