QMM is a tool that aids the creation of quantization matrices. It supports arbitrary dimensions and matrix population via formulas.
You'll need the .NET framework 2 (available on microsoft.com) to run QMM.