diagonal

Creates a matrix with data along the diagonal and all other elements set to 0.