TDIAGONAL

TDIAGONAL(t) converts one-way table t into a diagonal matrix.