How to create a limited frequent values in array?
Mostrar comentarios más antiguos
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]
Respuesta aceptada
Más respuestas (1)
Zaki
el 27 de Sept. de 2013
0 votos
1 comentario
Wayne King
el 27 de Sept. de 2013
Can you accept the answer if it answered your question?
Categorías
Más información sobre Creating and Concatenating Matrices en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!