From 12:00 PM - 4:00 PM CST on Thursday, October 18, ni.com will be undergoing system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

# eye

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.

C = eye(3, 3)

Where This Node Can Run:

Desktop OS: Windows

FPGA: Not supported