code creation matrice