Effacer les filtres
Effacer les filtres

category composed of multiple simpler categories

1 vue (au cours des 30 derniers jours)
Mahmoud Elbeltagy
Mahmoud Elbeltagy le 19 Août 2020
Commenté : dpb le 19 Août 2020
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 commentaires
Mahmoud Elbeltagy
Mahmoud Elbeltagy le 19 Août 2020
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 le 19 Août 2020
Well, it's not at all clear what "deal with this situation" means.

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Data Type Conversion dans Help Center et File Exchange

Produits


Version

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by