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

To better understand, are you asking are there any mex/mx APIs for categorical arrays.

댓글을 달려면 로그인하십시오.

답변 (1개)

Bo Li
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)에 대해 자세히 알아보기

제품

질문:

2017년 7월 11일

답변:

2017년 8월 3일

Community Treasure Hunt

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

Start Hunting!

Translated by