intersect between a double and a (complicated) cell array
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Ioannis Vourvachakis
am 6 Nov. 2021
Kommentiert: Ioannis Vourvachakis
am 14 Nov. 2021
I have a double array A
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/791394/image.png)
and I have a cell array B
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/791399/image.png)
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 Kommentare
Akzeptierte Antwort
Walter Roberson
am 6 Nov. 2021
col6_numerics = cell2mat(vertcat(YourCell{:,6}));
A_that_appear = A(ismember(A, col6_numerics));
2 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Matrices and Arrays finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!