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.
이전 댓글 표시
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?
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Logical에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!