IdentityMatrix[n] gives the n*n identity matrix. ... Basic Examples (1)Basic Examples (1). Construct a 3×3 identity matrix: In[1]:= Click for copyable input ...
reference.wolfram.com