Sum if conditions are satisfied across arrays
조회 수: 2 (최근 30일)
이전 댓글 표시
Hello everyone,
Kinda stuck. Scenario is:
I have a binary 2D array that is n rows and m columns.
I want to count how many times an element went from being a '1' in one row, to a '0' in the next row, and store it as a vector.
I have updated an illustration to help.
Would really appreciate an efficient and simple solution, cheers.
댓글 수: 2
Matt J
2018년 2월 14일
I have a binary 2D array that is m rows and n columns.
According to your diagram, n is the number of rows, not columns.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Subplots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!