Prevent Matlab Coder from making temp arrays into global arrays

I am using Embedded Coder to turn Simulink models into C. It appears, though, that Embedded Coder uses Matlab Coder on the Matlab Function blocks. This would be fine, except Matlab Coder makes temporary arrays (e.g. arrays inside of sub-functions) into globals. Is there any way to prevent this?

1 commentaire

Can you please post some MATLAB code where you see this behaviour?

Réponses (0)

Cette question est clôturée.

Question posée :

le 19 Nov 2012

Clôturé :

le 20 Août 2021

Community Treasure Hunt

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

Start Hunting!

Translated by