intersect between a double and a (complicated) cell array
5 views (last 30 days)
Show older comments
Ioannis Vourvachakis
on 6 Nov 2021
Commented: Ioannis Vourvachakis
on 14 Nov 2021
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 Comments
Accepted Answer
Walter Roberson
on 6 Nov 2021
col6_numerics = cell2mat(vertcat(YourCell{:,6}));
A_that_appear = A(ismember(A, col6_numerics));
2 Comments
More Answers (0)
See Also
Categories
Find more on Matrices and Arrays in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!