How can matlab coder be configured to generate only one c file?
Mostrar comentarios más antiguos
My problem is this: similarly, I can generate only one model.c and model.h file in simulink coder by setting the "File packaging format" to "compact". and model.h files, but if I don't use simulink coder, how can I generate only one c file/header file for my algorithm via Matlab coder app or command line control in this way? Thanks in advance
simlar issue:
------------------------------
Update to clarify:
I mean actually generate only one ".c" and the corresponding ".h" file, not Instead of following the steps below, select "Generate all functions into a single file". Because this generates additional files, such as <name>_type.h, etc.
Using the MATLAB Coder App
- To open the Generate dialog box, on the Generate Code page, click the Generate arrow .
- Click More Settings.
- On the Code Appearance tab, set the Generated file partitioning method to Generate one file for each MATLAB file or Generate all functions into a single file.
Respuestas (1)
Denis Gurchenkov
el 11 de Mzo. de 2022
Editada: Denis Gurchenkov
el 11 de Mzo. de 2022
0 votos
5 comentarios
xingxingcui
el 11 de Mzo. de 2022
Editada: xingxingcui
el 11 de Mzo. de 2022
Denis Gurchenkov
el 14 de Mzo. de 2022
Ah, I see now, thanks for clarifying!
I don't think such a feature exists in the MATLAB Coder product. I am creating a feature request for the development team based on your suggestion. To strenghten the case and help the dev team to prioritize this, can you please add a little bit of description - how would you use the generated code, how the single file scheme would be useful for you?
Thanks,
Denis.
xingxingcui
el 16 de Mzo. de 2022
xingxingcui
el 16 de Mzo. de 2022
Editada: xingxingcui
el 16 de Mzo. de 2022
xingxingcui
el 16 de Sept. de 2022
Editada: xingxingcui
el 16 de Sept. de 2022
Categorías
Más información sobre Deployment, Integration, and Supported Hardware en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!