Mathematica 9 is now available

DiagonalMatrix

Usage

DiagonalMatrix[list] 给出主对角元素为 list,其它元素为0的矩阵.


Notes

•参见Mathematica全书: 1.8.3节 和 3.7.1节.
• 同时参见: IdentityMatrix, Tr, KroneckerDelta.
Further Examples

In[1]:=  

Out[1]=

This displays the result in traditional matrix form, instead of as a list of lists.

In[2]:=  

Out[2]//MatrixForm=



Any questions about topics on this page? Click here to get an individual response.Buy NowMore Information
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.