Method on @infsup: end (A, k, n)

The magic index end refers to the last valid entry in an indexing operation.

For n = 1 the output of the indexing operation is a column vector and a single index is used to address all entries in column-first order. For n > 1 the k’th dimension is addressed separately.

A = infsup ([1 2 3; 4 5 6]);
A(1, end)
  ⇒ ans =  [3]
A(end, 1)
  ⇒ ans =  [4]
A(end)
  ⇒ ans =  [6]

See also: @infsup/size, @infsup/length, @infsup/numel, @infsup/rows, @infsup/columns.

Package: interval