My model example.mdl contains a masked subsystem. The mask initialization for this subsystem makes a call to a custom MATLAB function in which I use ASSIGNIN to set the value of a parameter in the 'caller' workspace. I expect that the 'caller' workspace is the mask workspace. However, when I run the model and then execute WHOS at the MATLAB command prompt, I find that the variable is assigned in the MATLAB base workspace.
MATLAB: Does ASSIGNIN assign a value in the MATLAB base workspace rather than mask workspace when setting a value within the mask initialization callback in Simulink 7.0 (R2007b)
assignssimulink
Related Question
- Clean variables of worskpace from GUIDE
- Mask
- Simulink mask using workspace variables
- How to access a base workspace variable from within a function
- Simulink mask callback adding variables to workspace
- How to move a variable from the global workspace to a local workspace
- Simulink mask text cannot access matlab workspace
Best Answer