Limit in MEX-files
2 ビュー (過去 30 日間)
古いコメントを表示
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?
0 件のコメント
採用された回答
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
2020 年 1 月 22 日
Needless to say, you will probably run out of memory before you hit these limits.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で MATLAB Compiler についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!