I want to display the following matrix in texmaker. please suggest.
Asked
Active
Viewed 117 times
0
Bernard
- 271,350
1 Answers
2
You can use nicematrix:
\documentclass{article}
\usepackage{nicematrix}
\begin{document}
$PM =
\begin{pNiceMatrix}[first-row,first-col]
& E_1 & E_2 & \Cdots & E_M \\
E_1 & \alpha_{11} & \alpha_{12} & \Cdots & \alpha_{1M} \\
E_2 & \alpha_{12} & \alpha_{22} & \Cdots & \alpha_{2M} \\
\Vdots & \Vdots & \Vdots & \Ddots & \Vdots \\
E_M & \alpha_{M_1} & \alpha_{M2} & \Cdots & \alpha_{MM}
\end{pNiceMatrix}$
\end{document}
F. Pantigny
- 40,250


blkarray: `\documentclass{article} \usepackage{blkarray} \begin{document}[PM= \begin{blockarray}{ccccc} & E_1 & E_2 & \cdots & E_M\ \begin{block}{c(cccc)} E_1 & \alpha_{11} & \alpha_{12} & \cdots & \alpha_{1M}\ E_2 & \alpha_{21} &\alpha_{22} & \cdots & \alpha_{2M}\ \vdots & \vdots & \vdots & \ddots & \vdots\ E_M & \alpha_{M1} & \alpha_{M2} & \cdots & \alpha_{MM}\ \end{block} \end{blockarray} ]
\end{document} `
– Nov 15 '19 at 05:40