find number of zeros in an array
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
data = [ 0 0 0 1 1 0 0 0 0 0 0 1 1 1]
%need the outpout as : length of each zero= (3,6) length of each ones = (2,4)
Réponse acceptée
Rik
le 10 Déc 2021
Get the RunLength function by Jan from the file exchange.
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Text Files dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!