Arranging Data based on relationship different columns
Afficher commentaires plus anciens
Hi, I have two set of data that I am trying to "merge". To "merge" them, I have to take into consideration, two columns in one of the set, and one column in the other set. Let's say in Data set 1, I have column A and column C. In the second set of data, I have column B. I want to arrange the data into one so that the numbers in each of the row of column B is less or equal to the numbers in each row of column A, and more than the numbers in each row of column C: ColumnA< ColumnB< ColumnC.
I was wondering if there was a function in Matlab that would help me with that. It is kind of complicated.
Thank you.
Réponses (1)
dpb
le 25 Juin 2014
X=sort([A B C],2,'ascend');
Catégories
En savoir plus sur Logical 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!