Hello everybody,

I am a complete beginner to Mata.. I want to take the means from each column of matrix A and move them into matrix B. If I have only one matrix the following works for me.
mata : st_matrix("B", mean(st_matrix("A")))
However, I would like to do this with a couple of matrices and then put the means in a new row. Does anybody know what command I can use there?

Thanks
Felix