How can I use a macro from custom C code in code generated by MATLAB Coder R2022b?
Show older comments
I am writing MATLAB code intended for code generation with MATLAB Coder in MATLAB R2022b. I have a "uint8" macro "MYVAL" defined in a C header file “myHeader.h”.
I want to use my macro from "myHeader.h" in the code generated from MATLAB Coder. Is there a way to use my macro in the generated code?
Accepted Answer
More Answers (0)
Categories
Find more on Algorithm Design Basics 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!