powered by
Diagonal matrix
Diagonal(n, x = NULL)
integer; the dimension of the square matrix.
A scalar or a vector to be placed on the diagonal of the matrix.
# NOT RUN { Diagonal(3) Diagonal(3, 999) Diagonal(3, c(11, 22, 33)) # }
Run the code above in your browser using DataLab