How to add label to index the rows and columns of the matrix ?
because I want to number the line outside the matrix
\[
\begin{array}{lc}
\ Mat_{\varPhi to M} & \left(\begin{array}{@{}ccccc@{}}
1 & 1 & 1 & 1 & 1 \\
0 & 1 & 0 & 0 & 1 \\
0 & 0 & 1 & 0 & 1 \\
0 & 0 & 0 & 1 & 1 \\
0 & 0 & 0 & 0 & 1
\end{array}\right) \\[15pt]
\end{array}
\]
Best Answer
Here is an option using
kbordermatrix
:For more options and styles, including the usage of
\bordermatrix
, see Where is the\matrix
command?