Count total number of recurring sequences
Afficher commentaires plus anciens
I would like to count how many times a consecutive sequence occurs in a list.
Let's say I have [0;1;1;1;0;0;0;0;1;0;1;1;1;1]
The output would be
1 3
2 0
3 1
4 2
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur String dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!