I am looking for vectorized matlab function to solve following problem:
I have sorted multiset T = [1 1 1 1 2 2 2 3]
and sorted submultiset V of T (length(V) is always smaller than length(T) )
V = [ 1 1 1 2]
I need to find logical vector
D = [1 1 1 0 1 0 0 0]
where length(D) = length(T) and T(D) = V