MATLAB: How to extact commone elements from different columns of a cell array

common entries in column of a cell

I want to extract the common entries in different column of a cell array.
Any idea how to extract them? mat file is attached

Best Answer

Use intersect(). See the first example in the help:
Intersection of Two Vectors
Define two vectors with values in common.
A = [7 1 7 7 4]; B = [7 0 4 4 0];
% Find the values common to both A and B.
C = intersect(A,B)
C =
4 7