Limit in MEX-files

조회 수: 4 (최근 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에서 Write C Functions Callable from MATLAB (MEX Files)에 대해 자세히 알아보기

제품


릴리스

R2015b

Community Treasure Hunt

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

Start Hunting!

Translated by