How to get data from Matlab to visual studio?
Show older comments
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?
Answers (0)
Categories
Find more on Write C Functions Callable from MATLAB (MEX Files) 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!