How do I generate code from a MATLAB script that uses preprocessor defines from external files with Embedded Coder R2023a?
Show older comments
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?
Accepted Answer
More Answers (0)
Categories
Find more on Introduction to Installation and Licensing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!