How to sort a matrix by a predefined order
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Shannon
el 29 de En. de 2020
Comentada: Shannon
el 29 de En. de 2020
I have a matrix, A=[1 2; 3 4; 5 6; 7 8], how to reset the order by B=[1; 4; 3; 2] to get A = [1 2; 7 8; 5 6; 3 4]?
Thanks,
0 comentarios
Respuesta aceptada
Más respuestas (0)
Ver también
Categorías
Más información sobre Shifting and Sorting Matrices en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!