MATLAB Answers

How can I genereate only one h file?

2 views (last 30 days)
Sina Brenner
Sina Brenner on 11 Nov 2019
Edited: Ajay Pattassery on 14 Nov 2019
Dear sir or madame,
we are using Matlab 2019a . When generating the code out of the simulink model we receive three header and one c files.
modelname.h, modelname.c, modelname_private.h, modelname_types.h
How can we change the settings so that only one h files gets generated?
Thanks a lot!
Sina Brenner

  0 Comments

Sign in to comment.

Answers (1)

Ajay Pattassery
Ajay Pattassery on 14 Nov 2019
Edited: Ajay Pattassery on 14 Nov 2019
Hello,
You can have a single header file modelname.h as codegen output by setting the File packaging format in Simulink Model Configuration Parameters to compact.
You can refer here for more information about the packaging formats.

  0 Comments

Sign in to comment.

Sign in to answer this question.