supported by the National Natural Science Foundation of China(No.11371245);the Natural Science Foundation of Hebei Province(No.A2010000194)
Associative multiplications of cubic matrices are provided.The N3-dimensional3-Lie algebras are realized by cubic matrices,and structures of the 3-Lie algebras are studied.