Documentation

Model Header

Specify external header code

Description

For a model that includes theModel Headerblock, the code generator adds external code that you specify to the header file (model.h) that it generates. You can specify code for the code generator to add near the top and bottom of the header file.

Note

If you include this block in a referenced model, the code generator ignores the block for simulation target builds, but processes the block for other system target files.

Parameters

expand all

Specify code that you want the code generator to add near the top of the header file for the model. The code generator places the code in the section labeleduser code (top of header file).

Specify code that you want the code generator to add at the bottom of the header file for the model. The code generator places the code in the section labeleduser code (bottom of header file).

Introduced in R2006a

Was this topic helpful?