Comparing two matrices for repeated values

1 回表示 (過去 30 日間)
vassey
vassey 2019 年 2 月 5 日
コメント済み: Rena Berman 2019 年 3 月 5 日
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 件のコメント
madhan ravi
madhan ravi 2019 年 2 月 5 日
Mr qqq definitely this behaviour is not encouraged.
Rena Berman
Rena Berman 2019 年 3 月 5 日
(Answers Dev) Restored edit

サインインしてコメントする。

採用された回答

Matt J
Matt J 2019 年 2 月 5 日
編集済み: Matt J 2019 年 2 月 5 日
u=unique(first(second==5));
u=u(u>10)

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGet Started with MATLAB についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by