What is the meaning of [B,J]=sort(A,'descend')?
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
What is the meaning of [B,J]=sort(A,'descend')
Why can he use [B,J] here?
1 commentaire
Stephen23
le 2 Avr 2019
Modifié(e) : Stephen23
le 2 Avr 2019
"What is the meaning of [B,J]=sort(A,'descend')"
B = the sorted data.
J = the sort indices along the dimension sorted along.
'descend' = tells sort to sort the values into descending order.
"Why can he use [B,J] here?"
Because its author read the documentation:
Réponses (0)
Voir également
Catégories
En savoir plus sur Shifting and Sorting Matrices dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!