I wrote a code that outputs a matrix and its heading, separately. I want to combine these outputs such that it is easy to be understood. (I.e. I want to re-shape this matrix into a grid/table that has labels to easily understand what does each column refer to).
In the attached file, I want to name the first column in the matrix {1,2} and the second column in the matrix {1,3} and so on.