What does a "~" mean in the following code
29 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Andreas
am 20 Jan. 2011
Beantwortet: Luna
am 18 Apr. 2024
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 Kommentare
Todd Flanagan
am 20 Jan. 2011
Hi Andreas, I moved your answer into a comment on your original question.
Akzeptierte Antwort
Weitere Antworten (2)
Doug Hull
am 20 Jan. 2011
~ means 'not'
doc punct
At the command line will tell you other uses for ~ and the punctuation marks.
0 Kommentare
Luna
am 18 Apr. 2024
- 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 Kommentare
Siehe auch
Kategorien
Mehr zu Matrix Indexing finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!