I am looking for an efficient way to determine how many sets consist of another set elements in Matlab.
Example:
U ={[1 2],[2 3],[3 4],[4 5],[5 6],[6 7],[1 7],[1 9],[3 9],[6 8],[8 9],[4 9],[5 8]};
V=[1 2 3 4 9];
[1 2],[2 3],[3 4],[1 9],[3 9],[4 9] so answer: 6 sets consist of V set elements
how to get that?
The result is: