I would like your advice on writing a matrix with latex. In order to explain the meaning of the rows and columns, the matrix should be surrounded by two arrows, one on the left side pointing downward and one on the upper side pointing to the right. Where the arrows are labeled. I tried several things such as:
\[
M_{reg} = \bordermatrix{~ & 0 & 1 & 2 & 3 & 4 & \cr
0 & 0 & 0 & 0 & 1 & 1 \cr
1 & 0 & 0 & 1 & 1 & 1 \cr
2 & 0 & 0 & 1 & 1 & 0 \cr
3 & 0 & 0 & 1 & 1 & 0 \cr
4 \downarrow{Ca^{2+}} & 0 & 0 & 0 & 0 & 0 \cr
%Ca^{2+}
}^{\xrightarrow{DAG}}
\]
But it's not pretty and things are not correctly aligned. Do you have any ideas, or pointers to draw that matrix correctly ?