Section: Array Generation and Manipulations
y = eye(n)
where n is the size of the identity matrix. The type of the output matrix is float.
n
float
--> eye(3) ans = <float> - size: [3 3] Columns 1 to 3 1 0 0 0 1 0 0 0 1