% EYE EYE Identity Matrix % % Usage % % Creates an identity matrix of the specified size. The syntax for % its use is % % y = eye(n) % % where n is the size of the identity matrix. The type of the % output matrix is float. % Copyright (c) 2002-2005 Samit Basu function I = eye(n) I = diag(ones(1,n));