What does a "~" mean in the following code
Mostra commenti meno recenti
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 Commenti
Todd Flanagan
il 20 Gen 2011
Andreas say, "I found it. ~ indicates not.
Thx anyway"
Todd Flanagan
il 20 Gen 2011
Hi Andreas, I moved your answer into a comment on your original question.
Risposta accettata
Più risposte (2)
Doug Hull
il 20 Gen 2011
~ means 'not'
doc punct
At the command line will tell you other uses for ~ and the punctuation marks.
Luna
il 18 Apr 2024
0 voti
- 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
Categorie
Scopri di più su Matrix Indexing in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!