Version:

Generates an identity matrix. An identity matrix has ones on the main diagonal and zeros elsewhere.

## Syntax

c = eye
c = eye(n)
c = eye(m, n)

## m

Number of rows for the identity matrix. m is an integer.

## n

Number of columns for the identity matrix. n is an integer.

## c

Identity matrix with m rows and n columns. c = eye returns a 1. c = eye(n) returns an n-by-n matrix.