Given an input matrix,
diag2vec returns a column vector of the elements along the diagonal.
an input matrix.
Similar to the function
diag, except that the input argument is always
treated as a matrix (i.e., it doesn't have diag()'s functions of returning an Identity matrix from an nrow specification, nor to return
a matrix wrapped around a diagonal if provided with a vector). To get vector2matrix functionality, call
1 2 3 4 5 6 7 8 9 10 11
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.