eye

Syntax: matrix = eye(size)

Description: returns a matrix with the specified size.

Group: matrix

Note:

Example:

eye(2) = [1,0;0,1]eye(3) = [1,0,0;0,1,0;0,0,1]

Also see: ones, zeros

Implemented in: LambdaEYE.java