Limit in MEX-files

2 次查看(过去 30 天)
rohit
rohit 2020-1-22
评论: Guillaume 2020-1-22
Hi,
I'm new to Matlab mex. I'm trying to write a mex function which in turn will take the structure data from a .cpp file and use it in matlab.
I came to know that plhs and prhs are the pointers to an array which hold the output data and input data respectively, each element of type mxArray.
Since structure size can be large, Is there any maximum size limit for the plhs and prhs array to hold the data ? If so, What are the alternate ways?

采纳的回答

Walter Roberson
Walter Roberson 2020-1-22
The maximum size limit is 2^48-1 elements per variable and 2^48-1 variables for input or output.
  1 个评论
Guillaume
Guillaume 2020-1-22
Needless to say, you will probably run out of memory before you hit these limits.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 MATLAB Compiler 的更多信息

产品


版本

R2015b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by