how to exchange matrix rows depending on distance
Afficher commentaires plus anciens
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?
Réponse acceptée
Plus de réponses (1)
Catégories
En savoir plus sur Resizing and Reshaping Matrices dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!