필터 지우기
필터 지우기

Comparision of two different cell arrays and save in two different matrices?

조회 수: 2 (최근 30일)
Hi i have two cell matrices with sring values as below
a = {'hi';'hello';'hey';'oh';'hello'};
b = {'hi';'hello'};
Comman strigns in one matrix and remaining in another matrix.i need the output as
result1 = {'hi';'hello';'hello'}
result2={'hey';'oh'}
Please let me know if any one knows, Thanks in advance
  댓글 수: 1
madhan ravi
madhan ravi 2019년 3월 13일
Your acceptance rate seems to be too low , makes people not to answer the question.

댓글을 달려면 로그인하십시오.

채택된 답변

madhan ravi
madhan ravi 2019년 3월 13일
편집: madhan ravi 2019년 3월 13일
result1=a(ismember(a,b)).'
result2=a(~ismember(a,b)).'

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by