I have a main GUI (Optimizer) that calls another GUI (Simulation), and this one runs a simulink model. In the Simulation GUI, I have a .m file and in this file I have the following line:
options = simset('SrcWorkspace','current');
When I run the code directly from the Simulation GUI, I've got no problems. However, when I run the Optimizer GUI I get the following error:
Undefined function 'simset' for input arguments of type 'char'.
How can I fix this? Any ideas?
Thanks in advance!