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 CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by