how can I force MATLAB to generate code of one element array?

Hello I have one variable defined for Data store memory, and declared as exported global, which will be used in legacy c code, and this variable is assigned initial value as one element array, but MATLAB while generating code for one element array it makes it into scalar, but i want it to be generated as one element array, How can I force MATLAB to generate code of one element array, and not make it into scalar?

回答 (0 件)

カテゴリ

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

質問済み:

2018 年 7 月 24 日

Community Treasure Hunt

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

Start Hunting!

Translated by