Description Usage Arguments Value
'diag' construct a diagnonal matrix.
1 | diagm(x)
|
x |
a vector or 1D array. |
a matrix with 'x' as diagonal and zero off-diagonal entries.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.