sorting data with specific

17 vues (au cours des 30 derniers jours)
Takim Mustakim
Takim Mustakim le 2 Avr 2023
A=[5 4 3 2 1; 6 7 8 9 0] . How to sort A being A=[1 2 3 4 5; 0 9 8 7 6] ???

Réponse acceptée

Stephen23
Stephen23 le 2 Avr 2023
A = [5,4,3,2,1;6,7,8,9,0];
B = sortrows(A.').'
B = 2×5
1 2 3 4 5 0 9 8 7 6
  1 commentaire
Takim Mustakim
Takim Mustakim le 2 Avr 2023
thank you buddy

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

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

Tags

Produits


Version

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by