How can I have a program create a new matrix, or overwrite an existing matrix at the start of the program?