how to read 'categorical' values from 'mxArray'?
显示 更早的评论
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
2017-8-2
To better understand, are you asking are there any mex/mx APIs for categorical arrays.
回答(1 个)
Bo Li
2017-8-3
0 个投票
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.
类别
在 帮助中心 和 File Exchange 中查找有关 Write C Functions Callable from MATLAB (MEX Files) 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!