Documentation Center

  • Trial Software
  • Product Updates


Class: categorical

Subscripted reference 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.


B = subsref(A,S)


B = subsref(A,S) is called for the syntax A(I), A{I}, or A.I when A is an object. S is a structure array with the following fields.

typeString containing '()', '{}', or '.' specifying the subscript type.
subsCell array or string containing the actual subscripts.

See Also


Was this topic helpful?