Say I have created a matrix. And now I want to label both the columns and the rows. However, I want to have labels on both sides of the matrix.
I have tried the following:
\documentclass[a4paper12pt]{article}
\usepackage{geometry}
\usepackage{blkarray}
\usepackage{amsmath}
\usepackage{xcolor}
\usepackage{graphicx}
\begin{document}
\[\mathbf{Pairs} =
\begin{blockarray}{cc}
Transmitter & Receiver \\
\begin{block}{c(cc)c}
TX_1^C & (x,y) & (x,y) & BS \\
TX_2^C & (x,y) & (x,y) & BS \\
&\vdots & \vdots \\
TX_{max}^C & (x,y) & (x,y) & BS \\
\BAhhline{......}
TX_1^D & (x,y) & (x,y) &RX_1^D \\
TX_2^D & (x,y) & (x,y) &RX_2^D \\
&\vdots & \vdots \\
TX_{ax}^D & (x,y) & (x,y) &RX_{max}^D
\end{block}
\end{blockarray}
\]
\end{document}
TeXstudio returns the error miscplaced \noalign. \end{block}
Anyone know why?