end (MathScript RT Module Keyword)

LabVIEW 2012 MathScript RT模块帮助

版本日期:June 2012

产品编号:373123C-0118

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

Owning Classes: programming and support

Requires: MathScript RT Module

Syntax

end

Description

Marks the end of for, while, switch, and if statements or indicates the last element of a row, column, or matrix. Within matrix indexing, A(end) indicates the last element of the matrix. A(2, end) indicates the last element of the second row. A(end, 2) indicates the last element of the second column.

Examples

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 Not characterized

Examples

A = 1
for X = 1:10
     A = A+1
end

A = [1 2; 3 4; 5 6]
X = A(end, 1:end)

Related Topics

for
if
return
switch
while

文章是否对您有帮助?

没有帮助