I have some difficulties with matlab, I can not get a comparison of cells with values
I have a variable IN of 1x14 cells, each cell can have a string or an array of values, and each cell has a different length
example string of
IN(1,1) = '1,2,3,8,10,11,12,'
example array of
IN(1,2) = [1x10 double]
meaning in IN(1,2) I have 10 cells and each cell with a value 1 2 3 7 9 10 11 12 13 14
so IN(1,1) has 7 values and IN(1,2) has 10
................
assuming I am using only arrays like
IN(1,1) I have 7 cells and each cell with a value 1 2 3 8 10 11 12
IN(1,2) I have 10 cells and each cell with a value 1 2 3 7 9 10 11 12 13 14
I want to know which values of IN(1,1) can be found in IN(1,2) in this case, IN(1,2) is member of IN(1,1) in 1 2 3 10 11 12
................
or if they are strings
IN(1,1) = '1,2,3,8,10,11,12,'
IN(1,1) = '1,2,3,7,9,10,11,12,14,'
How do I compare them and retrieve these common values?
I do not know whether I should use strings or arrays of values.
thanks for your help