category composed of multiple simpler categories

조회 수: 3 (최근 30일)
Mahmoud Elbeltagy
Mahmoud Elbeltagy 2020년 8월 19일
댓글: dpb 2020년 8월 19일
let's say I have a categorical array containing {a,b,c,a+c,a+b,...} and so on. one can see that only three categories exist whcih are {a,b,c}, but when I convert the array containing strings indicating the existing categories, each element of the set {a+c,a+b,c+b,...} becomes a category itself. I can solve this by building a function that returns the existing (simple,basic) categories, but I think this can be solved by a built function the operates on catergorical arrays directly.
Any advice?
  댓글 수: 3
Mahmoud Elbeltagy
Mahmoud Elbeltagy 2020년 8월 19일
Thank you!, the purpose of my question was to see of there is a way to deal with this situation while the variable class is categorical.
dpb
dpb 2020년 8월 19일
Well, it's not at all clear what "deal with this situation" means.

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

답변 (0개)

카테고리

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

제품


릴리스

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by