How to get data from Matlab to visual studio?
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I am using Matlab2016b and Visual Studio 2015. How can I get a data that is a matrix with 3 dimensions from Matlab and transfer it into visual studio for C++ processing using Matlab Engine API? I have seen examples of how data transfer is done from visual C++ to Matlab with the code
mxArray* /*Pointer2*/ = mxCreateDoubleMatrix(arraysize, /*Dimension of array*/, mxREAL);
memcpy((void*)mxGetPr(/*Pointer2*/), (void *)/*Name of Array*/, sizeof(/*e.g double,int8*/)*/*arraysize*/);
engPutVariable(Engine */*Pointer1*/,const char/*Alias Name(name of that array used on matlab)*/,const mxArray*/*Pointer2*/);
But how do I receive data from Matlab?
0 commentaires
Réponses (0)
Voir également
Catégories
En savoir plus sur Call MATLAB from C++ dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!