Question Regarding Sorting of the elements
9 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
say I have vector [ 4 2 6] representing indicies and each of them has values V1= [ 5 9 1]
and I have another vector [ 1 5 3 ] again representing indicies and each of them has the corresponding values v2= [ 0 0 0 ]
What I want is to rearrange the CORRESPONDING values of the indicies combined( in ascending order of the indicies) which would get me a vector as follows :
X = [ 0 9 0 5 0 1]
How can i get vector X ?
0 comentarios
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!