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.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!