Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

eye (MathScript RT Module Function)

LabVIEW 2012 MathScript RT Module Help

Edition Date: June 2012

Part Number: 373123C-01

»View Product Info
Download Help (Windows Only)

Owning Class: matrix

Requires: MathScript RT Module


c = eye(n)

c = eye(m, n)

c = eye([m, n])


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



Name Description
m Specifies the number of rows for the identity matrix. m is an integer.
n Specifies the number of columns for the identity matrix. n is an integer.


Name Description
c Returns an identity matrix with m rows and n columns. c = eye(n) returns an n-by-n matrix.


The following table lists the support characteristics of this function.

Supported in the LabVIEW Run-Time Engine Yes
Supported on RT targets Yes
Suitable for bounded execution times on RT Yes


C = eye(3, 3)

Related Topics



 Was this document helpful?  submit
  Helpful Not Helpful