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

2 ビュー (過去 30 日間)
Jeremy Wong
Jeremy Wong 2017 年 7 月 11 日
回答済み: Bo Li 2017 年 8 月 3 日
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 件のコメント
Shruthi Mysore Sadashiva
Shruthi Mysore Sadashiva 2017 年 8 月 2 日
To better understand, are you asking are there any mex/mx APIs for categorical arrays.

サインインしてコメントする。

回答 (1 件)

Bo Li
Bo Li 2017 年 8 月 3 日
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.

カテゴリ

Help Center および File ExchangeMATLAB Compiler についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by