MATLAB: How to create a matrix of strings in a MEX-file with MATLAB 7.9 (R2009b)

ccmexMATLABmexmx

I would like to create a matrix of strings in a MEX-file with MATLAB 7.9 (R2009b).

Best Answer

There is a function available from the MATLAB API which does this :
mxCreateCharMatrixFromStrings
This function will allow you to create a populated 2-dimensional mxArray of strings.
For more information about this function, please consult your MATLAB External Interfaces documentation. This information is also available online at:
<http://www.mathworks.com/access/helpdesk/help/techdoc/apiref/mxcreatecharmatrixfromstrings.shtml#226151>
Related Question