How to Add a Header file(#include"*.h") from simulink ?
7 views (last 30 days)
Show older comments
Gangadhar Badiger
on 16 Jan 2015
Commented: Gangadhar Badiger
on 19 Jan 2015
Suppose im converting Manual Written C code to Simulink model.. in C code im having the header file let us say #include"Myfile.h".. How to add this Header file from the Simulink? which block of the simulink supports this? so that i can get the same Header file name in the generated C file from the Simulink.
0 Comments
Accepted Answer
Titus Edelhofer
on 16 Jan 2015
Hi,
under the code generation pane for the Simulink Configuration there is the entry "Custom Code". Here you can add you header file.
Interesting would be why you need this? I guess in your code comes something where you need the header file to be included. How does this code get into your generated code? Usually it's a good idea to add the header there ...
Titus
More Answers (0)
See Also
Categories
Find more on Simulink Coder 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!