Effacer les filtres
Effacer les filtres

matPutVariable output size limitation

4 vues (au cours des 30 derniers jours)
user86753 le 16 Nov 2021
Modifié(e) : James Tursa le 16 Nov 2021
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);
  1 commentaire
James Tursa
James Tursa le 16 Nov 2021
Modifié(e) : James Tursa le 16 Nov 2021
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?

Connectez-vous pour commenter.

Réponses (0)


En savoir plus sur MATLAB Coder dans Help Center et File Exchange




Community Treasure Hunt

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

Start Hunting!

Translated by