Define array to be code generated as static

조회 수: 6 (최근 30일)
Michel C
Michel C 2021년 5월 18일
답변: Darshan Ramakant Bhat 2021년 5월 18일
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.

답변 (1개)

Darshan Ramakant Bhat
Darshan Ramakant Bhat 2021년 5월 18일

카테고리

Help CenterFile Exchange에서 MATLAB Coder에 대해 자세히 알아보기

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by