find number of zeros in an array
2 ビュー (過去 30 日間)
古いコメントを表示
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)
採用された回答
Rik
2021 年 12 月 10 日
Get the RunLength function by Jan from the file exchange.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Text Files についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!