# end

Version:

Marks the end of for, while, and if statements or indicates the last element of an array of any dimension.

## Syntax

end

## Further Information

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.

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


Where This Node Can Run:

Desktop OS: Windows

FPGA: This product does not support FPGA devices