Borrar filtros
Borrar filtros

sorting data with specific

3 visualizaciones (últimos 30 días)
Takim Mustakim
Takim Mustakim el 2 de Abr. de 2023
Comentada: Takim Mustakim el 2 de Abr. de 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] ???

Respuesta aceptada

Stephen23
Stephen23 el 2 de Abr. de 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

Más respuestas (0)

Categorías

Más información sobre Shifting and Sorting Matrices en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by