<< NaN | Constructors functions | eps >> |
D = diag(V) |
X = diag(A) |
D = diag(V, k) |
X = diag(A, k) |
Diagonal elements
Input matrix
vector
matrix
diag returns diagonal elements of matrix or create diagonal matrix.
diag(eye(3))
diag(diag(eye(3)))
ones.
Version | Description |
---|---|
1.0.0 | initial version |
Allan CORNET