Create a diagonal matrix from a vector, or alternatively, get the vector of diagonal entries from a matrix.
1 2 |
x |
fmlmat vector or matrix. |
nrow, ncol |
The dimension of the resulting matrix if specified. |
names |
Ignored. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.