Returns a one-dimensional matrix containing one of a matrix's diagonals. The diagonal returned starts in the upper-left corner and ends in the lower-right corner. This will cause a Dimension Error unless the matrix is a square matrix. :diag(list) :diag(one-dimensional matrix) This returns a matrix that has the specified diagonal, and contains zeros in all other positions.
Graph IRI | Count |
---|