Mathematics Previous page   Next Page

The Identity Matrix

Generally accepted mathematical notation uses the capital letter i to denote identity matrices, matrices of various sizes with ones on the main diagonal and zeros elsewhere. These matrices have the property that a times i equals a and i times a equals a whenever the dimensions are compatible. The original version of MATLAB could not use i for this purpose because it did not distinguish between upper and lowercase letters and i already served double duty as a subscript and as the complex unit. So an English language pun was introduced. The function

returns an m-by-n rectangular identity matrix and eye(n) returns an n-by-n square identity matrix.


Previous page  Multiplying Matrices The Kronecker Tensor Product Next page

© 1994-2005 The MathWorks, Inc.