Record hex of matrix and name of matrix into File.