I am using engGetVariable() to transfer an mxArray from the Matlab Engine to my C++ program. The documentation says: "The limit for the size of data transferred is 2 GB."
Why is this limitation present? Is there a way to increase it without breaking up the array into separate arrays? I need to transfer large arrays, potentially up to 256GB.
I like the simplicity of the Matlab Engine, so I would rather avoid having to break up, transfer, and re-assemble large arrays.
3 Comments
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/254184-matlab-engine-array-transfer-size-limitation#comment_322203
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/254184-matlab-engine-array-transfer-size-limitation#comment_322203
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/254184-matlab-engine-array-transfer-size-limitation#comment_322206
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/254184-matlab-engine-array-transfer-size-limitation#comment_322206
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/254184-matlab-engine-array-transfer-size-limitation#comment_322211
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/254184-matlab-engine-array-transfer-size-limitation#comment_322211
Sign in to comment.