How to filter a cell array from entries from another cell array
조회 수: 5 (최근 30일)
이전 댓글 표시
Hello,
I have a cell array, called cell1, containing a list of string variables. I would like to remove all variables with the same name in a second cell array, called cell2, and generate a thrid cell array, called cell3, with data from cell2 that were not present in cell1.
For example, let say that cell1 and cell2 are:
cell1 = {'aaa';'bbb';'ccc';'ddd'};
cell2 = {'bbb';'eee';'fff';'aaa';'ccc'};
How to get:
cell3 = {'eee';'fff'}
Thank you in advance,
Guillaume
댓글 수: 0
채택된 답변
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Logical에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!