Member of the matrix class.
c = eye(n)
c = eye(m, n)
c = eye([m, n])
c = eye(size(a))
Generates an identity matrix. An identity matrix has ones on the main diagonal and zeros elsewhere.
| Name | Description |
| m | Specifies the number of rows for the identity matrix. m is an integer. |
| n | Specifies the number of columns for the identity matrix. n is an integer. |
| a | Specifies a square matrix. |
| Name | Description |
| c | Returns an identity matrix with m rows and n columns, or of the same size as a. c = eye(n) returns an n-by-n matrix. |
C = eye(3, 3)