Meaning of ~isempty()

115 Ansichten (letzte 30 Tage)
abc abc
abc abc am 26 Jul. 2016
Bearbeitet: Stephen23 am 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 !

Akzeptierte Antwort

Adam
Adam am 26 Jul. 2016
Bearbeitet: Adam am 26 Jul. 2016
~ means NOT
so isempty tells you if the vector is empty and ~isempty tells you if the vector is not empty.
  1 Kommentar
abc abc
abc abc am 26 Jul. 2016
Perfect thanks !

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Programming finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by