How to convert data bit ident to string?

1 view (last 30 days)
Martin
Martin on 19 Jul 2012
I use MATLAB as ActiveX-Client. For invokation a server method, i need to convert an array of data (signed 16 bit integer) to string in a bit ident way.
Their is a solution written in C++:
BSTR bstrData = ::SysAllocStringLen(NULL, Size); // copy samples into the string short* pData = pBlock; // start address for (int i = 0; i < wBlockSize*c_nGenerators; i++, pData++) { bstrData[i] = *pData; }
Is there an equivalent solution in MATLAB (vers. r2011b) without using mex-functions for calling C++-methods?

Answers (0)

Community Treasure Hunt

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

Start Hunting!