Abstract: The invention relates to a spatially encoded polymer matrix in the form of a bead or a granule for combinatorial solid phase synthesis, assaying, functional proteomics and diagnostic use. Compositions of such beads or granules are also provided. Each beaded polymer matrix of the composition comprises a plurality of spatially immobilized particles. The spatial immobilization of the particles confers on each beaded polymer matrix a “fingerprint” which enables identification of unique beads in a population of beads. The unique identification of individual beads makes it possible to perform combinatorial chemistry strategies while logging individual chemical transformation. Also provided are methods for detection of relative positions in space of particles, methods for generating matrices, methods for distance matrix determination, methods for identifying individual matrices and devices for recording and storing images of matrices.