Description Usage Arguments Value Author(s) Examples
This function works in the way analogous to the diag function of Matlab.
1 | dg(x)
|
x |
a number, vector or square matrix. |
If x is a number, dg returns itself. If x is a vector, a one-row matrix or a one-column matrix, dg returns a matrix with x as the main diagnol. Otherwise dg returns diag(x).
LI Wu <liwu@staff.shu.edu.cn>
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.