What does a tilde (~) inside square brackets mean?
Mostrar comentarios más antiguos
[~, 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)?
Respuesta aceptada
Más respuestas (2)
Walter Roberson
el 18 de Abr. de 2013
It is equivalent to
[temp, Palette] = kmeans(reshape(B(:),M*N,3),8,'E','s','S','U');
clear temp
2 comentarios
Delvin
el 18 de Abr. de 2013
Walter Roberson
el 9 de Mayo de 2019
[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
el 24 de Mayo de 2017
0 votos
Whether it is supported in Matlab Version 2009 or not.
1 comentario
Steven Lord
el 24 de Mayo de 2017
This functionality was introduced in release R2009b. So it depends what you mean by "Version 2009" -- release R2009a no, release R2009b yes.
Categorías
Más información sobre Call Python from MATLAB en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!