I am attempting to generate code from a Simulink model. I noticed that, if no changes are made in the model, code generation simply reuses previously compiled code.
This is an issue for me since I'm using values from the MATLAB base work space in my simulink model and if I change values there, I would like changes to be reflected in code generation.
This is currently what's happening:
1) Change value X from 0 to 1 in the MATLAB workspace. 2) Make no change in the simulink model. 3) The value of X in the generated code is still 0.
If in step 2) however I make some small change in the simulink model, MATLAB recompiles the model code and the new value of X (1) is reflected.
Is there a workaround to this?