The ability to specify the workspace in which parameters are evaluated by the MODEL command is not currently available in Simulink. As a workaround, consider the following options:
1. Use the EVALIN and ASSIGIN commands to set the variables in the base workspace.
2. Create the parameters in the Simulink Workspace using Model Explorer or the Simulink command-line functionality. Once the parameters are defined in the Simulink Workspace, then you can use SET_PARAM to set their values. For more information on this process, execute the following command at the MATLAB command prompt to see the appropriate documentation:
web([docroot,'/toolbox/simulink/ug/working_with_data11.html#90636'])
Best Answer