Define array to be code generated as static

Hello!
I'm using Matlab Embedded Coder to generate C code from my matlab function. I have a matrix which I want to be declared as static in the resulting C code (due to memory allocation issues, out of my control). Is there a way in the Matlab code to make sure that Embedded Coder generates this particular matrix as a static array? I've tried creating it as a persistent variable in Matlab but Embedded Coder seems to just ignore that.

カテゴリ

ヘルプ センター および File ExchangeMATLAB Coder についてさらに検索

製品

リリース

R2019b

質問済み:

2021 年 5 月 18 日

回答済み:

2021 年 5 月 18 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by