Info
This question is closed. Reopen it to edit or answer.
Is it possible to set the output dynamically fro RTW?
1 view (last 30 days)
Show older comments
Hi,
I would like to read out n number of data from a file using C S-Function and that transfer to the output. In advance I don't know the number of data points and also this can change for the next run. I am using dynamically allocated memory. After the end of reading in the content I know the total number of data and I have the data stored in a vector.
I do this in the mdlStart function.
How can I allocate the size of the output in the mdlStart function which is compatible code generation?
Regards,
Run
0 Comments
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!