What does ~ stand for in the following example?
조회 수: 3 (최근 30일)
이전 댓글 표시
What does this piece of code mean? [~,~,P] = size(I);
댓글 수: 0
채택된 답변
Star Strider
2016년 1월 1일
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
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!