Been working on some economics lately, and was able to figure out how to put together some 2×2 payoff matrix's but not sure how to go about doing a 3×3. I would like to keep the same general idea if possible, i.e. the tikz picture.
Here is what I have used to generate a 2×2.
%third matrix
%learn how to do 3x3
\begin{center}
\begin{tikzpicture}
\matrix[matrix of math nodes,every odd row/.style={align=right},every evenrow/.style={align=left},every node/.style={text width=1.5cm},row sep=0.2cm,column sep=0.2cm] (m) {
2&\bf{3}\\
4&\bf{2}\\
-1&\bf{0}\\
\bf{6}&0\\
};
\draw (m.north east) rectangle (m.south west);
\draw (m.north) -- (m.south);
\draw (m.east) -- (m.west);
\coordinate (a) at ($(m.north west)!0.25!(m.north east)$);
\coordinate (b) at ($(m.north west)!0.75!(m.north east)$);
\node[above=5pt of a,anchor=base] {Left};
\node[above=5pt of b,anchor=base] {Right};
\coordinate (c) at ($(m.north west)!0.25!(m.south west)$);
\coordinate (d) at ($(m.north west)!0.75!(m.south west)$);
\node[left=2pt of c,text width=1cm] {Up};
\node[left=2pt of d,text width=1cm] {Down};
\node[above=18pt of m.north] (firm b) {Column};
\node[left=1.6cm of m.west,align=center,anchor=center] {Row};
%\node[above=5pt of firm b] {Payoff Matrix};
\end{tikzpicture}
\end{center}
Best Answer
Please have a look at Will two-letter font style commands (\bf , \it , …) ever be resurrected in LaTeX?