I was trying to generate several new matrix and rename columns and rows with the same actions but different variable values. Follows are the codes I did in a slow way, I tried t