What is the meaning of [B,J]=sort(A,'descend')?

3 vues (au cours des 30 derniers jours)
zhenyu zeng
zhenyu zeng le 2 Avr 2019
Modifié(e) : Stephen23 le 2 Avr 2019
What is the meaning of [B,J]=sort(A,'descend')
Why can he use [B,J] here?
  1 commentaire
Stephen23
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:

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Shifting and Sorting Matrices dans Help Center et File Exchange

Tags

Produits

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by