How can I genereate only one h file?

1 回表示 (過去 30 日間)
Sina Brenner
Sina Brenner 2019 年 11 月 11 日
編集済み: Ajay Pattassery 2019 年 11 月 14 日
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

回答 (1 件)

Ajay Pattassery
Ajay Pattassery 2019 年 11 月 14 日
編集済み: Ajay Pattassery 2019 年 11 月 14 日
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.

カテゴリ

Help Center および File ExchangeSimulink Coder についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by