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

7 views (last 30 days)
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

Answers (1)

Atharva
Atharva on 13 Sep 2023
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!

Products


Release

R2021a

Community Treasure Hunt

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

Start Hunting!