matPutVariable output size limitation

1 次查看(过去 30 天)
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