I would like to pick the consecutive cells those satistfies my given condition
조회 수: 1 (최근 30일)
이전 댓글 표시
I have a array of 122 by 10 data set. I have given the criteria to pick the cells whose values are greather than equal to 1.
Now I would like to pick the cells which satisfies the above condition and those satisfies cells are consecutively aranged.
For Ex: Cell 25,26,27,31 are satisfiying the above creiteria . But I wanted to highligh or list out the greter than or equal to 3 consecutive cells, which mean it has to highlight cell25,26,27
댓글 수: 1
Matt J
2022년 5월 11일
Consecutively along columns? And, to be clear, when you say "cell" you don't really mean a cell array, right?
채택된 답변
Matt J
2022년 5월 11일
편집: Matt J
2022년 5월 11일
You might benefit from downloading,
Then you can label consecutive groups of true elements with, e.g.,
a=rand(1,10)+randi([0,1],1,10)
G=groupTrue(a>1)
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Large Files and Big Data에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!