How to instatiate a variable on to an external file?
이전 댓글 표시
I want to produce generated code which instantiates a variable not on the model.c file but on a different file which I specify. I need this because I want to use this same variable on different models (code generation process goes per model) and I cannot instantiate them more than once.
댓글 수: 1
Ivan van der Kroon
2011년 5월 23일
With the save command? Otherwise, can you post an m-file or be more specific?
답변 (1개)
Kaustubha Govind
2011년 5월 23일
0 개 추천
I've never tried this, but I think you should be able to achieve this using Custom Storage Classes. In particular, you should set the Data Initialization property of the Custom Storage Class to "none", so that not initialization code is generated.
카테고리
도움말 센터 및 File Exchange에서 MATLAB Coder에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!