What does a tilde (~) inside square brackets mean?
이전 댓글 표시
[~, Palette] = kmeans(reshape(B(:),M*N,3),8,'E','s','S','U');
Specifically, what does the ~ inside the square brackets represent (e.g. a matrix with multiple LHS assignment)?
채택된 답변
추가 답변 (2개)
Walter Roberson
2013년 4월 18일
It is equivalent to
[temp, Palette] = kmeans(reshape(B(:),M*N,3),8,'E','s','S','U');
clear temp
댓글 수: 2
Delvin
2013년 4월 18일
Walter Roberson
2019년 5월 9일
[ThIsVArIAblEiZnOTuzED, Palette] = kmeans(reshape(B(:),M*N,3),8,'E','s','S','U');
clear ThIsVArIAblEiZnOTuzED
and the [] mean that multiple outputs are being returned from the function. It is not an array.
Ankur Bhardwaj
2017년 5월 24일
0 개 추천
Whether it is supported in Matlab Version 2009 or not.
댓글 수: 1
Steven Lord
2017년 5월 24일
This functionality was introduced in release R2009b. So it depends what you mean by "Version 2009" -- release R2009a no, release R2009b yes.
카테고리
도움말 센터 및 File Exchange에서 Call Python from MATLAB에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!