Main Content

end

(Not Recommended) Last index in indexing expression for dataset array

The dataset data type is not recommended. To work with heterogeneous data, use the MATLAB® table data type instead. See MATLAB table documentation for more information.

Syntax

end(A,k,n)

Description

end(A,k,n) is called for indexing expressions involving the dataset A when end is part of the k-th index out of n indices. For example, the expression A(end-1,:) calls A's end method with end(A,1,2).

See Also