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 CenterFile Exchange에서 MATLAB Compiler에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by