I would like to thank Matt J for helping me solve the problem. My sincere gratitude to him.
Meanwhile, this is the way how I have solved the issue-
archive = unique(popx,"rows","stable");
A = cx(ia,:); % A is the matrix of rows which are present in cx but not present in popx
C = [A;B];