Create write_system.m