how to exchange matrix rows depending on distance
Mostrar comentarios más antiguos
hi guys, i have the following matrix A with distance D1 and matrix B with distance D2.

i want a code to exchange A rows with B rows which have higher distance, as moving row 2 in B to matrix A row 2 and remove the old row 2 in A. the output should be:

how to do this guys?
Respuesta aceptada
Más respuestas (1)
Categorías
Más información sobre Resizing and Reshaping Matrices en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!