Dear Statalists,

I am not very familiar with the matrix in Stata. I just have a simple question below.

Code:
version 15.1
sysuse auto.dta, clear
reg price i.foreign
mat m = r(table)
mat m = m[1..2, 2..3]'
mat list m


                   b         se
1.foreign  312.25874  754.44884
    _cons  6072.4231  411.36305
I want to write a loop. This loop transforms the above matrix to the below tables. Basically, it just put the standard error below its corresponding coefficient. Because my real matrix is much bigger than this, I need a loop to achieve this goal.
foreign
_coefficient
foreign_se
constant
_coefficient
constant_se
Can someone please help me? Thanks!