Quantcast
Channel: MATLAB Central Newsreader - tag:"set"
Viewing all articles
Browse latest Browse all 22

how to use contains

$
0
0
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'.

Viewing all articles
Browse latest Browse all 22

Trending Articles