find number of zeros in an array
5 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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)
Risposta accettata
Rik
il 10 Dic 2021
Get the RunLength function by Jan from the file exchange.
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Text Files in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!