How do I generate code from a MATLAB script that uses preprocessor defines from external files with Embedded Coder R2023a?
古いコメントを表示
I am generating code using Embedded Coder from a MATLAB script in R2023a. This code uses values from preprocessor defines in external header files. I would like to be able to generate code that uses these external defines, similar to the 'ImportedDefine' storage class for Simulink models. However, despite this being an option in Simulink, there is no such option for MATLAB code using storage classes as described here:
.
Is there a good way to generate this kind of code?
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Simulink Coder についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!