Azzera filtri
Azzera filtri

Meaning of ~isempty()

290 visualizzazioni (ultimi 30 giorni)
abc abc
abc abc il 26 Lug 2016
Modificato: Stephen23 il 26 Lug 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 !

Risposta accettata

Adam
Adam il 26 Lug 2016
Modificato: Adam il 26 Lug 2016
~ means NOT
so isempty tells you if the vector is empty and ~isempty tells you if the vector is not empty.

Più risposte (0)

Categorie

Scopri di più su Matrices and Arrays in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by