Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

end (MathScript Function) (Windows, Not in Base Package)

LabVIEW 8.5 Help
August 2007

NI Part Number:
371361D-01

»View Product Info

Member of the programming and the support classes.

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 the last element of the second row. A(end, 2) indicates the last element of the second column.

Examples

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


Resources


 

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