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?

Answers (0)

Categories

Find more on Simulink Coder in Help Center and File Exchange

Products

Asked:

on 24 Jul 2018

Community Treasure Hunt

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

Start Hunting!