In my first encounter with multicolumn and multirow, I have attempted to make a table containing math, including matrices.
Firstly, I have an error in my column names; I'm unsure where I am going wrong and have been unable to find similar problems. I wish for my titles to be "Design" and then "Results" as my multicolumn heading, but they both sit in the same box. (Edit: I'm also getting an error "Extra alignment tab has been changed to \cr." which I think may be the source of this problem?)
Secondly, the matrices in the cells seem crowded, is it possible to modify the cell size whilst retaining centering?
Finally, in my first column I have two matrices which sit each in their own multirow, they are currently left aligned (or aligned with each other) is it possible again to have them centered within their (multiple) cell?
I appreciate any help but will continue to attempt to resolve the issues. Please see the code below:
\documentclass{article}
\usepackage{multirow}
\usepackage{amsmath}
\begin{document}
\begin{center}
\begin{tabular}{ c|c c }
Design &\multicolumn{4}{c|}{Results}\\
\hline
\multirow{2}{11em}{$\xi_3 = \begin{Bmatrix}
-1 &0 &1 \\
1/3 &1/3 &1/3 \\
\end{Bmatrix}$}
&$M(\xi_3)=\begin{bmatrix}
3 &0 \\
0 &2
\end{bmatrix}$
&$d(x,\xi_3)= 1+\frac{3x^2}{2}$ \\
&$\begin{vmatrix}M(\xi_{3})\end{vmatrix}=6$
&$d(x,\xi_{3})=2.5$\\
\multirow{2}{11em}{$\xi_3^{'} = \begin{Bmatrix}
-1 &1 \\
1/2 &1/2 \\
\end{Bmatrix}$}
&$M(\xi_3^{'})=\begin{bmatrix}
3 &0 \\
0 &2
\end{bmatrix}$
&$d(x,\xi_3^{'})= 1+\frac{3x^2}{2}$ \\
&$\begin{vmatrix}M(\xi_{3}^{'})\end{vmatrix}=8$
&$d(x,\xi_{3}^{'})=3$\\
\end{tabular}
\end{center}
\end{document}