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

조회 수: 13 (최근 30일)
Please answer the below question shown in image.

채택된 답변

Lei Hou
Lei Hou 2021년 10월 17일
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
  댓글 수: 3
Lei Hou
Lei Hou 2021년 10월 19일
Hi Sangat,
We can exclude "A distribution of numeric data" and "A list of all unique values". The description of "a fixed set of possibilities" is not very clear of what the data look like. If the data contains duplicated values and possible values are from a fixed set, then it is also a use case of categorical.
Thanks,
Lei

댓글을 달려면 로그인하십시오.

추가 답변 (2개)

Arliya Marin Mathew
Arliya Marin Mathew 2021년 10월 21일
●A list of text where some values in the list are repeated ●A fixed set of possibilities ●A column in a table that labels which group each row belongs to

Sujeevan Thommandru
Sujeevan Thommandru 2023년 6월 10일

카테고리

Help CenterFile Exchange에서 Matrices and Arrays에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by