Skip to content

Diagonal

Extract diagonal of a matrix.

$ wo 'Diagonal[{{1, 2, 3}, {4, 5, 6}}]'
{1, 5}