Comparing two matrices for repeated values

1 vue (au cours des 30 derniers jours)
vassey
vassey le 5 Fév 2019
Commenté : Rena Berman le 5 Mar 2019
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
  3 commentaires
madhan ravi
madhan ravi le 5 Fév 2019
Mr qqq definitely this behaviour is not encouraged.
Rena Berman
Rena Berman le 5 Mar 2019
(Answers Dev) Restored edit

Connectez-vous pour commenter.

Réponse acceptée

Matt J
Matt J le 5 Fév 2019
Modifié(e) : Matt J le 5 Fév 2019
u=unique(first(second==5));
u=u(u>10)

Plus de réponses (0)

Catégories

En savoir plus sur Get Started with MATLAB dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by