MATLAB: Undefined function ‘eq’ for input arguments of type ‘struct’

function eqstructundefined function 'eq' for input arguments of type 'struct'

Hi! I create this code in which s is a struct
if(s(1,1)==[])
i=i+1;
end
I have an error: 'Undefined function 'eq' for input arguments of type 'struct', I don't understand the error's meaning. Someone can help me, thanks

Best Answer

Does this do what you want?
if( isempty(s) )