MATLAB Programming Fundamentals - MathWorks

(やまだぃちぅ) #1
xsmall
small
small

The values from B are appended to the values from A.

List the categories of C.

categories(C)

ans = 5x1 cell array
{'xsmall'}
{'small' }
{'medium'}
{'large' }
{'xlarge'}

C is a 16-by-1 ordinal categorical array with five categories, such that xsmall < small
< medium < large < xlarge.

See Also
addcats | categorical | categories | isordinal | isprotected | summary

Related Examples



  • “Create Categorical Arrays” on page 8-2

  • “Convert Text in Table Variables to Categorical” on page 8-7

  • “Access Data Using Categorical Arrays” on page 8-30

  • “Combine Categorical Arrays” on page 8-23

  • “Combine Categorical Arrays Using Multiplication” on page 8-27


More About



  • “Ordinal Categorical Arrays” on page 8-46


8 Categorical Arrays

Free download pdf