How do I create a matrix of strings in a MEX-file with MATLAB 7.9 (R2009b)?
1 view (last 30 days)
Show older comments
I would like to create a matrix of strings in a MEX-file with MATLAB 7.9 (R2009b).
Accepted Answer
MathWorks Support Team
on 20 Nov 2009
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>
0 Comments
More Answers (0)
See Also
Categories
Find more on Resizing and Reshaping Matrices in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!