How to convert data bit ident to string?
显示 更早的评论
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 个)
类别
在 帮助中心 和 File Exchange 中查找有关 ActiveX 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!