Mathematica 9 is now available
 Documentation / Mathematica / Built-in Functions / Lists and Matrices / List Construction  /
IdentityMatrix

  • IdentityMatrix[ n ] gives the identity matrix.
  • See the Mathematica book: Section 1.8.3Section 3.7.1.
  • See also: DiagonalMatrix, Table.
  • Related package: LinearAlgebra`MatrixManipulation`.

    Further Examples

    Here are two ways to show the x identity matrix.

    In[1]:=

    Out[1]=

    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.