How to convert data bit ident to string?
Mostrar comentarios más antiguos
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?
Respuestas (0)
Categorías
Más información sobre ActiveX en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!