What does a "~" mean in the following code
조회 수: 95 (최근 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일 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!