how to read 'categorical' values from 'mxArray'?

2 vues (au cours des 30 derniers jours)
Jeremy Wong
Jeremy Wong le 11 Juil 2017
Réponse apportée : Bo Li le 3 Août 2017
I would like to read the categorical output of 'SeriesNetwork.classify(...)' with my C program. However, I found that 'mxArray' did not expose values of categorical array, right?
  1 commentaire
Shruthi Mysore Sadashiva
Shruthi Mysore Sadashiva le 2 Août 2017
To better understand, are you asking are there any mex/mx APIs for categorical arrays.

Connectez-vous pour commenter.

Réponses (1)

Bo Li
Bo Li le 3 Août 2017
You can’t create categorical arrays with mxArray API, as there is no categorical in the mxClassID:
I haven’t tried yet, but you should be able to pass such an array to your MEX file from MATLAB and use mexCallMATLAB in your MEX file to invokes its methods.

Catégories

En savoir plus sur MATLAB Compiler dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by