This is documentation for Mathematica 5, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)

Documentation / Mathematica / Built-in Functions / Lists and Matrices / List Construction /

IdentityMatrix

FilledSmallSquare IdentityMatrix[n] gives the identity matrix.

FilledSmallSquare See Section 1.8.3 and Section 3.7.1.

FilledSmallSquare See also: DiagonalMatrix, KroneckerDelta, Table.

FilledSmallSquare Related package: LinearAlgebra`MatrixManipulation`.

FilledSmallSquare New in Version 1.

Further Examples