C code generated for variable size model interface

1 visualizzazione (ultimi 30 giorni)
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 ?

Risposte (0)

Community Treasure Hunt

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

Start Hunting!

Translated by