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?
采纳的回答
Walter Roberson
2021-11-6
col6_numerics = cell2mat(vertcat(YourCell{:,6}));
A_that_appear = A(ismember(A, col6_numerics));
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Matrices and Arrays 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!