Array as a #define instead of scalar
Ältere Kommentare anzeigen
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
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Simulink Coder finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!