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!