matrices - A matrix inside a table - TeX - LaTeX Stack Exchange
Multi-column and multi-row cells in LaTeX tables – texblog
tables - Is it possible to draw an n by n grid with text in each cell, with a different background shade/colour in each? (confusion matrix) - TeX - LaTeX Stack Exchange