Comparing two matrices for repeated values

1 Ansicht (letzte 30 Tage)
vassey
vassey am 5 Feb. 2019
Kommentiert: Rena Berman am 5 Mär. 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 Kommentare
madhan ravi
madhan ravi am 5 Feb. 2019
Mr qqq definitely this behaviour is not encouraged.
Rena Berman
Rena Berman am 5 Mär. 2019
(Answers Dev) Restored edit

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Matt J
Matt J am 5 Feb. 2019
Bearbeitet: Matt J am 5 Feb. 2019
u=unique(first(second==5));
u=u(u>10)

Weitere Antworten (0)

Kategorien

Mehr zu Get Started with MATLAB finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by