Info

This question is closed. Reopen it to edit or answer.

Can I know the amount of memory allocated dynamically by generated code?

1 view (last 30 days)
I'm generating C code from Matlab Functions, using Matlab Coder and Embedded Coder. The function is taking two vectors as input, and is performing a model fitting process. During the fitting process, intermediate variable size vectors are generated, and generated code uses dynamic memory allocation. I would like to know if its possible to know the amount of memory been allocated, depending, for example, on the size of the input vector.
If it is possible, can you give some guidelines on how to do it?

Answers (0)

Products

Community Treasure Hunt

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

Start Hunting!