find number of zeros in an array
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Harshitha Eshwar
am 10 Dez. 2021
Kommentiert: Rik
am 10 Dez. 2021
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)
Akzeptierte Antwort
Rik
am 10 Dez. 2021
Get the RunLength function by Jan from the file exchange.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Text Files finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!