DiagonalMatrix

WMA link


DiagonalMatrix[list]

gives a matrix with the values in list on its diagonal and zeroes elsewhere.

← BoxMatrix
→ DiamondMatrix