フィルターのクリア

When using the code generator, how can I exclude definitions that are already made in a different header file?

2 ビュー (過去 30 日間)
When I use the code generator, some definitions are already in a different header file that I've already made, but excluding those definitions in my code will result in an error saying that a certain variable is not defined. Is there a way to make the code generator not #define constant variables that are already defined in a different header file? Can I include said header file into Simulink so the code generator knows which definitions to exclude?

回答 (1 件)

Varun Bhaskar
Varun Bhaskar 2015 年 12 月 17 日
Hi,
1) If a header file is not defined, the #define constant variables in these header files should not be included.
2) In order to include custom header files:

カテゴリ

Help Center および File ExchangeMATLAB Report Generator についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by