Generate exported_enum_type.h file with different name without modifying getHeaderFile()
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
oussama
el 2 de Feb. de 2024
Respondida: Mark McBroom
el 13 de Feb. de 2024
I have model.slx file that uses enum type, when i generate the code MATLAB creates model.c and model.h, aslo exported_enum_type.h file that contains the data of the enum type, and this is expected since the enum file have getHeaderFile() method that points to this name.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1607076/image.png)
My question is how to force MATLAB to generate this file like this "model_exported_enum_type.h" by changing model.slx setting to ignore getHeaderFile() and without changing the enum file content ?
Note: This can be solved simply by changing getHeaderFile() to point to "model_exported_enum_type.h" instead, but i want to keep the enum file as it is.
0 comentarios
Respuesta aceptada
Mark McBroom
el 13 de Feb. de 2024
The only way to change the header file name is by modifying the getHeaderFile() function.
Thanks.
Mark.
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Deployment, Integration, and Supported Hardware 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!