What does a "~" mean in the following code
97 次查看(过去 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 个评论
采纳的回答
更多回答(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,6:25
- 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 个评论
另请参阅
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!