MATLAB Answers

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

5 views (last 30 days)
mm
mm on 8 Nov 2018
Edited: Vineet Ahirkar on 12 Nov 2018
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.

  0 Comments

Sign in to comment.

Answers (1)

Vineet Ahirkar
Vineet Ahirkar on 12 Nov 2018
Edited: Vineet Ahirkar on 12 Nov 2018
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 -

  0 Comments

Sign in to comment.

Tags


Translated by