Please answer any one. If any one know please answer.

# (Select all that apply) In which of the following situations would you typically use a categorical array?

11 views (last 30 days)

Show older comments

Please answer the below question shown in image.

### Accepted Answer

Lei Hou
on 17 Oct 2021

Hi Sangat,

Typically, categorical is useful when your array is large, contains duplicated values and has finite set of discrete categories. For example, a very long vector of US states. A categorical array provides efficient storage and convenient manipulation of nonnumeric data. Regarding the situations you provided, I would recommend:

- A list of text where some values in the list are repeated
- A column in a table that labels which group each row belongs to

Thanks,

Lei

### More Answers (1)

Arliya Marin Mathew
on 21 Oct 2021

### See Also

### Categories

### Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!