This problem needs more test cases with the three of a kind appearing before the pair, such as:
1 0 1 0 0 0 0 0 0 0 1 0 1
0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 1 0 0 0 0 0 0 0 1 0 0
0 0 0 0 0 0 0 0 0 0 1 0 0
Read a column of numbers and interpolate missing data
1280 Solvers
Back to basics 12 - Input Arguments
528 Solvers
190 Solvers
499 Solvers
Create an index-powered vector
379 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!