Began working on finding gaps; having trouble understanding matlab code.