Description Usage Arguments Details Value Examples
Create a square matrix with specified subdiagonal elements, or add specified elements to the subdiagonal of an existing matrix.
1 | subdiag(A, sx)
|
A |
Either a positive integer giving the row and column dimensions of the matrix, or a square matrix |
sx |
Values to put on the subdiagonal. Either a scalar (which will be
replicated as needed) or a vector with length one less than |
If A
is an integer n, then subdiag(A, sx)
returns an n x n zero matrix with nonzero values on the subdiagonal. If A
is a square
matrix, then subdiag(A, sx)
returns the matrix A
with the subdiagonal
elements added to it.
A matrix with specified subdiagonal or with the subdiagonal added to the input matrix
1 2 3 4 5 6 7 8 9 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.