Documentation Center

  • Trial Software
  • Product Updates


Class: categorical

Last index in indexing expression for categorical array

The nominal and ordinal array data types might be removed in a future release. To represent ordered and unordered discrete, nonnumeric data, use the MATLAB® categorical data type instead.




end(A,k,n) indexes expressions involving the categorical array 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

Was this topic helpful?