Is there a possibility to create a new array with the index numbers of 1 and -1 when following condition is met:
y = find(a==-1)-find(a==1)-1;
if y > 100
% add to a new array find(a==1) and (a==-1) from the 1/-1 set which has index difference of over 100
end