counting number of repeated elements
Afficher commentaires plus anciens
Hello All,
I have a large array with size (1224477x1 double). There are only 1s and 0s in this array. What I want to do is the following: First, I want to count the number of times 0s are repeated consecutively. If this number exceeds 360, I want to isolate that section of the array and perform some other calculations on them. And then move on to the other section which has more than 360 consecutive 0s. How do I do that? Thanks
Réponse acceptée
Plus de réponses (1)
the cyclist
le 31 Juil 2017
0 votes
The first thing I would do is download the very handy RunLength code from the File Exchange. That will give you a good start.
Catégories
En savoir plus sur Creating and Concatenating Matrices 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!