Spatial codification: M-arrays (I)