intersect between a double and a (complicated) cell array
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Ioannis Vourvachakis
le 6 Nov 2021
Commenté : Ioannis Vourvachakis
le 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 commentaires
Réponse acceptée
Walter Roberson
le 6 Nov 2021
col6_numerics = cell2mat(vertcat(YourCell{:,6}));
A_that_appear = A(ismember(A, col6_numerics));
2 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Data Types dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!