Created the class miatrix_generate.