How to reconstruct 2 column array to m*n array which is contain logic function that defined whether it have that specific row in that 2 column array or not.
Afficher commentaires plus anciens
I want to transfer from 2 column array on the left hand side to m*n array like in the right hand side. The two array is the same meaning but I don't know how to transform it automatically because I have a lot of data that have to do this process.

Supposed from the left hand side it is array A and B respectively, I tried
isempty(A(A(2,1) == B(1,2) & A(2,2) == B(2,1)))
the result is 1 but it's only one result but I want all the array B how can I do it? any ideas?
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Logical dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!