Borrar filtros
Borrar filtros

Meaning of ~isempty()

205 visualizaciones (últimos 30 días)
abc abc
abc abc el 26 de Jul. de 2016
Editada: Stephen23 el 26 de Jul. de 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 !

Respuesta aceptada

Adam
Adam el 26 de Jul. de 2016
Editada: Adam el 26 de Jul. de 2016
~ means NOT
so isempty tells you if the vector is empty and ~isempty tells you if the vector is not empty.
  1 comentario
abc abc
abc abc el 26 de Jul. de 2016
Perfect thanks !

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Matrices and Arrays en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by