how many changes are there?
조회 수: 5 (최근 30일)
이전 댓글 표시
I have this kind of data (column 1-2-3, respectively):
Right= [1 1 1 0 0 0 0 0 1 0 1 1 1]
Center=[0 0 0 1 1 1 0 0 0 1 0 0 0]
Left= [0 0 0 0 0 0 1 1 0 0 0 0 0]
I want to count how many changes there are between right and left, not considering the center. In my example there are 2 changes in total from right to left and from left to right. Thank you in advance.
댓글 수: 3
Thorsten
2016년 7월 22일
What exactly are the "2 changes in total from right to left and from left to right"? Please expand.
답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!