Unit Matrix

Author

Eric W. Weisstein
October 10, 2002

This notebook downloaded from http://mathworld.wolfram.com/notebooks/LinearAlgebra/UnitMatrix.nb.

For more information, see Eric's MathWorld entry http://mathworld.wolfram.com/UnitMatrix.html.

©2005 Wolfram Research, Inc. except for portions noted otherwise

Code

UnitMatrix[n_Integer?Positive]:=Table[1,{n},{n}]

Examples

MatrixForm/@Table[UnitMatrix[n],{n,5}]