"mazari ahmed" <ahmedmazari.ma@gmail.com> wrote in message
news:mdhqg9$cgs$1@newscl01ah.mathworks.com...
> l want to compare two lists of elements:
> 1) to know if the neighbours of j are included in k 2) to know if the set
> of neighbours of j is the the same as k the code is : if
> (contains(neighbour_n{k},
> neighbour_n{j})||(neighbour_n{j}==neighbour_n{k}));
>
> but there is a mistake
> Undefined function or method 'contains' for input arguments of type
> 'double'.
There are functions named contains in our products, but I don't think they
will do what you're looking for. Perhaps you're looking for ISMEMBER,
INTERSECT, or SETXOR?
--
Steve Lord
slord@mathworks.com
To contact Technical Support use the Contact Us link on
http://www.mathworks.com