Is there a wrapper function available in MATLAB or the MATLAB Compiler that allows easy conversion from cell arrays to STL vectors?

I would like to have a wrapper function available in MATLAB 7.3(R2006b) that allows easy conversion from cell arrays to Standard Template Library (STL) vectors. For example, if I call a MATLAB function from my C code, and the function returns a cell array of strings, I would like to convert the cell array to an STL vector of strings.

 Accepted Answer

The ability to convert cell arrays to STL vectors is not available in the MATLAB Compiler, or in the engine interface of MATLAB.
To work around this issue, loop through the array and convert each element to the STL equivalent individually.

More Answers (0)

Products

Release

R2006b

Community Treasure Hunt

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

Start Hunting!