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

1 Ansicht (letzte 30 Tage)
Jeremy Wong
Jeremy Wong am 11 Jul. 2017
Beantwortet: Bo Li am 3 Aug. 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 Kommentar
Shruthi Mysore Sadashiva
Shruthi Mysore Sadashiva am 2 Aug. 2017
To better understand, are you asking are there any mex/mx APIs for categorical arrays.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Bo Li
Bo Li am 3 Aug. 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.

Kategorien

Mehr zu Resizing and Reshaping Matrices finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by