What does a "~" mean in the following code
30 ビュー (過去 30 日間)
古いコメントを表示
A newbie (me) needs to understand a syntax I can't find in the documentation.
if ~isempty(E)
B=[A
E'*S];
end;
What does the ~ (tilde) mean or do prior to the isempty(E)?
2 件のコメント
Todd Flanagan
2011 年 1 月 20 日
Hi Andreas, I moved your answer into a comment on your original question.
採用された回答
その他の回答 (2 件)
Doug Hull
2011 年 1 月 20 日
~ means 'not'
doc punct
At the command line will tell you other uses for ~ and the punctuation marks.
0 件のコメント
Luna
2024 年 4 月 18 日
- For what values of the variable a will the following code print 'Goodbye Mapua'?
- if a < 7 || a >= 4
- disp('Hello Mapua ')
- else
- disp('Goodbye Mapua ')
- end
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Matrix Indexing についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!