I have to create the matrixes which will have the form as below (bigger 100x100) and write output to csv or py file. A1 matrix is best example of output i need.