intersect between a double and a (complicated) cell array
조회 수: 4 (최근 30일)
이전 댓글 표시
I have a double array A
and I have a cell array B
I want to extract the values in array A, that also are contained in the sixth column of array B.
Ηow this can be achieved?
댓글 수: 3
채택된 답변
Walter Roberson
2021년 11월 6일
col6_numerics = cell2mat(vertcat(YourCell{:,6}));
A_that_appear = A(ismember(A, col6_numerics));
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!