C code generated for variable size model interface

1 回表示 (過去 30 日間)
vivek patel
vivek patel 2022 年 7 月 21 日
For one of the application, i need to have variable size input to the model. In the actual system the size of data would be changing i.e. either 1, 2,1000 etc. Hence i am trying to use the variable size.
I have changed the inport settings to say that it is a Variable Size. When i generate the c code with Embedded Coder, i see that the interface created for this inputs are still defined as uint8 a; and also one more struct with the size of the signal.
But i am not sure how can i pass the variable array from another code to the MATLAB code ? As the signal is still defined as a signle variable ?

回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by