Convert a numeric vector/list into a diagonal matrix. If the vector/list is named, names will be used as the column and row names of the resulting diagonal matrix.
a numeric vector/list
a diagonal matrix
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.