I am trying now for a while to get it right, but I cant figure it out.

Before:
I did below before, which is working fine to fetch 6th column (of first row) in my matrix from a model (I am running a loop to fetch several values):
coef<-matrix(c(summary(resi)$coefficients[1,c(6)]),1,1)

After:
Now I also want to fetch another column (summary(resi)$standard.errors[1,c(6)]) and do a minor calculation meanwhile to get a z value.

The z value is defined with:
z <- summary(resi)$coefficients/summary(resi)$standard.errors

So basically instead of one column, I want two columns (and one of them is calculated by above formula).

I tried this:
coef<-matrix(c(summary(resi)$coefficients[1,c(6)],(summary(resi)$coefficients[1,c(6)]/summary(resi)$standard.errors[1,c(6)])),1,2)

But it is not working, I believe I am getting the syntax wrong of a R matrix.