連続した同じ数字をカウントアップする方法
Afficher commentaires plus anciens
例えば、
[0]と[1]の配列
[0 0 0 1 1 1 0 0 1]
連続した数字をカウントアップする方法を教えていただけないでしょうか。
連続が途切れた場合は1に戻る。
上の例ですと
[1 2 3 1 2 3 1 2 1]
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur インストールとライセンスの紹介 dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!