MATLAB: Meaning of ~isempty()

matlab function

Hello, i would like to know what this expression means : ~isempty(t) where t is a vector ?
At the beginning i thought it was just to know if t is a empty vector but if remove the ~ my code doesn't work anymore. So what do you think of that ?
Thanks a lot !

Best Answer

~ means NOT
so isempty tells you if the vector is empty and ~isempty tells you if the vector is not empty.