Suppose that I want find the edges of ones and of not ones such that I can divide an in areas the array. Suppose the array is as the example below:
a=[1 1 1 1 1 1 12 10 1 1 1 1 1 11 12 1 1 1 2 3]a(1:6) -->area1 of onesa(7:8) -->area1 of not onesa(9:a13) -->area2 of onesa(14:15)-->area2 of not onesa(16:19)-->area3 of onesa(20) -->area3 of not ones
and so on..
Best Answer