連続した同じ数字をカウントアップする方法
Mostrar comentarios más antiguos
例えば、
[0]と[1]の配列
[0 0 0 1 1 1 0 0 1]
連続した数字をカウントアップする方法を教えていただけないでしょうか。
連続が途切れた場合は1に戻る。
上の例ですと
[1 2 3 1 2 3 1 2 1]
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre インストールとライセンスの紹介 en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!