From: joseph Frank on
x=find(ismember(A,B)==1 & ismember(C,D)==1);

where

Name Size Bytes Class Attributes

A 31954x1 1442696 cell
B 1x1 68 cell
C 31954x1 2172872 cell
D 1x1 68 cell

Sample of A:
126554
126554
1356
1356

B: 23767

Sample of C:
2002
2004
2006
2007

D:1995

I am receiving an error:
??? Error using ==> cell.ismember at 28
Input must be cell arrays of strings.

Error in ==> Step2Table3Merge1withseocln at 38
x=find(ismember(A,B)==1 & ismember(C,D)==1);

I am stuck there without an ability to progress. Any hint about the cause of the problem will be appreciated.

From: Matt Fig on
find(ismember([A{:}],B) & ismember([C{:}],D))
From: Matt Fig on
"Matt Fig" <spamanon(a)yahoo.com> wrote in message <hrq1os$t7i$1(a)fred.mathworks.com>...
> find(ismember([A{:}],B) & ismember([C{:}],D))

Oh, I didn't see that B and D were cells too. You will have to index into them as cells too.

find(ismember([A{:}],B{1}) & ismember([C{:}],D{1}))
From: joseph Frank on
"Matt Fig" <spamanon(a)yahoo.com> wrote in message <hrq1os$t7i$1(a)fred.mathworks.com>...
> find(ismember([A{:}],B) & ismember([C{:}],D))

I am still receiving an error:

??? Error using ==> cell.ismember at 28
Input must be cell arrays of strings.
From: Matt Fig on
Did you see my second post above?