Clear Filters
Clear Filters

Meaning of ~isempty()

288 views (last 30 days)
abc abc
abc abc on 26 Jul 2016
Edited: Stephen23 on 26 Jul 2016
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 !

Accepted Answer

Adam
Adam on 26 Jul 2016
Edited: Adam on 26 Jul 2016
~ means NOT
so isempty tells you if the vector is empty and ~isempty tells you if the vector is not empty.

More Answers (0)

Categories

Find more on Matrices and Arrays in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!