Matrix import export