if matrix with faces/triangles like [1 2 3; 4 5 6; 7 8 9 ....
[~, indv] = find( -200<x & x<200 & -200<y & y<200 ); % indices of X and Y in square
indf = ceil(indv/3); % indices of faces
see also inpolygon()

Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!