How to extract lengths of sequences from a binary vector?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
For example, I have x = [0 0 1 1 1 0 1 0 0 0 0 1 1 0]; and I need 2,3,1,1,4,2,1. Are there any simple way to get this?
0 Kommentare
Antworten (2)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!