I want to rename the "rtwtypes.h" file generated during code generation.

6 次查看(过去 30 天)
When I build simulink model, the "rtwtypes.h" file is created.
I want to rename "rtwtypes.h" to whatever I want, like "rtwtypes_AAA.h".
Please let me know it is possible or not. If possible, please tell me how

回答(1 个)

Atharva
Atharva 2023-9-13
Hey HEONGTAE,
I understand that you want to Customize the name of "rtwtypes.h" in generated code.
Unfortunately, rtwtypes.h is a dynamically generated header file, it is not statically pulled in from matlabroot.​​​​​​​ You cannot customize the name "rtwtypes.h".
You can refer to the Mathworks documentation Customize Post-Code-Generation Build Processing for further details on post processing of generated code.
I hope this helps!

产品


版本

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by