You can use cellfun in combination with isequal :
For instance:
cellArr = {[1 2 3],'xcxc',magic(5),1:3}; element = [1 2 3]; indexes = cellfun( @(x)isequal(x,element),cellArr);
This will give you an array containing true in the cells that exist in this element. To check if an element exists at least once, simply use:
any(indexes)
source share