intersect between a double and a (complicated) cell array
1 回表示 (過去 30 日間)
古いコメントを表示
Ioannis Vourvachakis
2021 年 11 月 6 日
コメント済み: Ioannis Vourvachakis
2021 年 11 月 14 日
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 件のコメント
採用された回答
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!