How to convert data bit ident to string?
1 view (last 30 days)
Show older comments
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?
0 Comments
Answers (0)
See Also
Categories
Find more on ActiveX in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!