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!