What does ~ stand for in the following example?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Nicoleta
am 1 Jan. 2016
Kommentiert: Star Strider
am 9 Jan. 2016
What does this piece of code mean? [~,~,P] = size(I);
0 Kommentare
Akzeptierte Antwort
Star Strider
am 1 Jan. 2016
The ‘~’ in that context tells the function to not return that particular output. Apparently ‘I’ is a 3D array, and the person who wrote that only wanted to know the number of ‘pages’ (3rd dimension) of it, not the number of rows or columns, the first and second dimensions respectively.
2 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Get Started with MATLAB finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!