8.2.57 tail

Function: out = tail (A)
Function: out = tail (A, k)

Get last K rows of an array.

Returns the array A, subsetted to its last k rows. This means subsetting it to the last (min (k, size (A, 1))) elements along dimension 1, and leaving all other dimensions unrestricted.

A is the array to subset.

k is the number of rows to get. k defaults to 8 if it is omitted or empty.

If there are less than k rows in A, returns all rows.

Returns an array of the same type as A, unless ()-indexing A produces an array of a different type, in which case it returns that type.

See also: head