answer = diag (value)
Returns the diagnoal of a matrix
.
diag([1,2,3;4,5,6;7,8,9] [1, 5, 9] diag([2,3,4;5,6,7],1] [3, 7]
sum, trace, zeros, ones