MATLAB: Comparing two matrices for repeated values

MATLABrepeatvalue

Hello
I have 2 matrices, both have one column and hundreds of rows. I have just found the repeated values in the first file by unique. As my question, I am trying to find repeated values more than 10 in the first file when the values in second file are equals to some number, lets say 5.
For example, when the second document gives 15, the number in the first file repeats 150 times. Is it possible?
Thank you

Best Answer

u=unique(first(second==5));
u=u(u>10)