DiagonalMatrix• DiagonalMatrix[list] gives a matrix with the elements of list on the leading diagonal, and 0 elsewhere. • See also: IdentityMatrix.
Examples Using InstantCalculatorsHere is the InstantCalculator for the DiagonalMatrix function. Enter the parameters for your calculation and click Calculate to see the result.
Out[1]= |  |
Entering Commands DirectlyYou can paste a template for this command via the Text Input button on the DiagonalMatrix Function Controller. This puts the elements of the list along the diagonal of a square matrix.
Out[2]= |  |
|