(Enhancement Request)how to Create data files that the generated code reads at run time to support C/C++ code generation?
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
cui,xingxing
el 19 de Abr. de 2023
Comentada: cui,xingxing
el 22 de Abr. de 2023
As far as I know, coder.write and coder.read are functions that support serialisation/deserialisation at runtime in R2023a. coder.read supports C/C++ code generation, but unfortunately coder.write does not, and can only be used in a MATLAB environment. This has caused me difficulties as there are many complex structures that need to be dynamically saved and loaded during the running of my program. Hopefully future versions will enhance coder.write with C/C++ code support.
0 comentarios
Respuesta aceptada
Nathan S
el 21 de Abr. de 2023
Thanks for letting us know that you would like this functionality!
We will use this request to prioritize this feature in the future. In the meantime, you can use fwrite or fprintf (although they obviously are much more cumbersome for complex structures)
Más respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!