Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
how to fine repeated value?
조회 수: 1 (최근 30일)
이전 댓글 표시
in a column if there is 100 vlaues some are repeated and nonrepeated values how to fine repeated values, how many times it is repeated .
how to get this is there any matlab instruction r code?
댓글 수: 0
답변 (1개)
Rik
2020년 3월 21일
If you just wanted to know the repeated values you could use unique to filter each first occurrence, which would leave the repeated values.
As you want to know how often every value occurs the most logical step would be to histcounts. Use max and min to determine the bin edges.
댓글 수: 5
Walter Roberson
2020년 3월 21일
This does not appear to relate to the original question: the probability of a repeated value created by randn() is very low -- you would have to generate more than 1e8 samples for the probability of even one duplicate to reach 50%.
이 질문은 마감되었습니다.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!