Matlab Coder for .m archives that call another .m archives
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
David López de la Cruz
el 10 de Mayo de 2019
Comentada: David López de la Cruz
el 22 de Mayo de 2019
I want to generate C code from a .m archive from MATLAB, but this archive calls different .m archives from its code, such as another script or a function. How can I generate portable and readable C code so that the complete .m archive could run correctly?
On the other hand, I would like to know which kind of code would run faster my .m archive. Do I use C code, a MEX function or an executable?
0 comentarios
Respuestas (1)
Pruthvi Muppavarapu
el 14 de Mayo de 2019
Hi David,
That should not be a problem. When you ask to process your top-level function, the coder will automatically find the routines that are called, and the routines that they call, and so on. So you should be able to successfully generate C code using the top-level .m archive.
To answer to your second query, MEX functions could be used for accelerated versions of your .m archives. You might use MEX functions for faster execution of your .m files.
Hope this helps.
Regards,
Pruthvi
Ver también
Categorías
Más información sobre MATLAB Coder en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!