How to create a limited frequent values in array?
이전 댓글 표시
Is there anyone know how to create limited frequent values in array? Because, what I found is only the most frequent. I'd like to make it like two or three times appear. For example this problem :
Return a list of all values (sorted smallest to largest) that appear exactly three times in the input vector x. So
if
x = [1 2 5 2 2 7 8 3 3 1 3 8 8 8]
then
y = [2 3]
채택된 답변
추가 답변 (1개)
Zaki
2013년 9월 27일
0 개 추천
댓글 수: 1
Wayne King
2013년 9월 27일
Can you accept the answer if it answered your question?
카테고리
도움말 센터 및 File Exchange에서 MATLAB에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!