Meaning of ~isempty()

107 ビュー (過去 30 日間)
abc abc
abc abc 2016 年 7 月 26 日
編集済み: Stephen23 2016 年 7 月 26 日
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 件のコメント
Stephen23
Stephen23 2016 年 7 月 26 日
編集済み: Stephen23 2016 年 7 月 26 日

サインインしてコメントする。

採用された回答

Adam
Adam 2016 年 7 月 26 日
編集済み: Adam 2016 年 7 月 26 日
~ means NOT
so isempty tells you if the vector is empty and ~isempty tells you if the vector is not empty.
  1 件のコメント
abc abc
abc abc 2016 年 7 月 26 日
Perfect thanks !

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeProgramming についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by