Array as a #define instead of scalar
Show older comments
Hi all
I want to use a small array as a Storage Class 'define':

However, when I use this in my model and try to generate code, it gives the following error:

So it seems I cannot use an array as a #define in code. Is this to be expected? Is there a work-around?
With kind regards,
Jonas
Accepted Answer
More Answers (0)
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!