Compare 2 Cell Arrays and add equal values into 3rd Array

조회 수: 1 (최근 30일)
Mert Daglar
Mert Daglar 2019년 11월 25일
댓글: Mert Daglar 2019년 11월 25일
Hi,
I'm new in learning Matlab and I'm trying to compare two Cell Arrays and get the result into another "result-Array", where the equal data of both strings are in.
I tried result = arrayA == arrayB but I get the Error: Undefined operator '==' for input arguments of type 'cell'.
Can someone please help me to get a solution?
Thanks for your answers!

채택된 답변

RiHo
RiHo 2019년 11월 25일
편집: RiHo 2019년 11월 25일
Hello.
Have you tried the intersect() matlab built-in function?

추가 답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by