sorting array without min and max
16 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
hi just wondering how i can sort a given matrix A = [3 4 2 5 1] from highest to lowest without using the matlab min and max function
1 commentaire
Adam Danz
le 23 Nov 2019
Modifié(e) : Adam Danz
le 23 Nov 2019
Hint: there's a matlab function that does exactly that and the function's name is one of the first 10 words in your question. You'll have to tell this function to use 'descend' order which is explained on this function's documentation page.
Réponses (1)
the cyclist
le 23 Nov 2019
Modifié(e) : the cyclist
le 23 Nov 2019
Take your pick: Sorting algorithms
0 commentaires
Voir également
Catégories
En savoir plus sur Shifting and Sorting Matrices dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!