Create matrix header file