MATLAB: Problem with ”if”

cellsiflogical?

Hi everyone, I have this variable:
values =
[] [1x27 char] [1x32 char] [1x28 char] [1x34 char]
and i want have a check for empty cells. I use :
if values[ ]==[ ]
….
end
But unfortunately….
??? Conversion to logical from cell is not possible. What can i do???

Best Answer

cellfun ( @isempty, values )