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)
Run
Run on 7 Nov 2019
Closed: MATLAB Answer Bot on 20 Aug 2021
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

Answers (0)

Community Treasure Hunt

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

Start Hunting!