How to deal with the new string data type and string arrays when calling the matlab engine and matrix.h

조회 수: 1 (최근 30일)
How can I deal with the new string datatype and string arrays when using the C engine and C Matrix API. There does not seem to be any mention of this in the C API docs.

답변 (1개)

Vineet Ahirkar
Vineet Ahirkar 2018년 11월 12일
편집: Vineet Ahirkar 2018년 11월 12일
Currently, the C Engine and C MEX do not support the new MATLAB string. As a workaround, a wrapper function can be created for the conversion between char array and string.
You can consider moving to the C++ Engine or C++ MEX in order to work with MATLAB string.
Refer to these links for the same -

카테고리

Help CenterFile Exchange에서 Call C from MATLAB에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by