how to sort an array of elements corresponding to another array in increasing order ?
5 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
talal alqahtani
el 13 de Dic. de 2019
Respondida: Turlough Hughes
el 13 de Dic. de 2019
if a= -1 0 2 -3 5 -10
and b= 2 -3 5 0 4 1
are two corresponding arrays . how to sort values of (b) in an increasing order with keeping its corresponding values in array (a).
the answer should be like this:
a= 0 -3 -10 -1 5 2
b= -3 0 1 2 4 5
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!