Meaning of ~isempty()

109 vues (au cours des 30 derniers jours)
abc abc
abc abc le 26 Juil 2016
Modifié(e) : Stephen23 le 26 Juil 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 !
  1 commentaire
Stephen23
Stephen23 le 26 Juil 2016
Modifié(e) : Stephen23 le 26 Juil 2016

Connectez-vous pour commenter.

Réponse acceptée

Adam
Adam le 26 Juil 2016
Modifié(e) : Adam le 26 Juil 2016
~ means NOT
so isempty tells you if the vector is empty and ~isempty tells you if the vector is not empty.
  1 commentaire
abc abc
abc abc le 26 Juil 2016
Perfect thanks !

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Programming dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by