matPutVariable output size limitation

조회 수: 1 (최근 30일)
user86753
user86753 2021년 11월 16일
편집: James Tursa 2021년 11월 16일
I'm using matputvariable to write out an array of data from a compiled MATLAB executable. This works fine until I try to run my application longer and write out more data, then the application ends but only the 128 byte output file is written. No error message and no data. Is there a max size limitation?
mxArray * outputLevel_1 = mxCreateStructArray(numDim, dims, 2, outputLevel_1_fields);
matPutVariable(outputFile, "simData", outputLevel_1);
https://www.mathworks.com/help/matlab/apiref/matputvariable.html
  댓글 수: 1
James Tursa
James Tursa 2021년 11월 16일
편집: James Tursa 2021년 11월 16일
Have you checked to ensure you are not writing beyond valid memory when storing the data? You haven't shown us the code for this. How big does the variable get before you get the problem?

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Data Import and Analysis에 대해 자세히 알아보기

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by