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

Syntax

c = eye(n)

c = eye(m, n)

c = eye([m, n])

Description

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

Examples

Inputs

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.

Outputs

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

Details

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

Examples

C = eye(3, 3)

Related Topics

ones


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit