Matrices and set intersections