eye (MathScript RT Module Function)

LabVIEW 2012 MathScript RT模块帮助

版本日期:June 2012

产品编号:373123C-0118

»查看产品信息
下载帮助
(仅限Windows)

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

文章是否对您有帮助?

没有帮助