Simulink encounters an issue when loading the MATLAB-file that contains the simulation data for the model. This issue arises when the path to the MATLAB-file contains an apostrophe.
There are a few workarounds:
1. Change the MATLAB Current Folder to a new directory that does not contain an apostrophe. It is best practice to avoid using spaces or any special characters in folder names used by MATLAB and Simulink.
2. In the generated model, navigate to the model's Model Workspace in the Model Explorer. Change the Workspace Data Source from MATLAB File to MATLAB Code. Copy the contents of the generated "sm_robot_DataFile.m" and paste it into the text area. Click Apply.
3. Upgrade to R2017b. This issue has been fixed in the newer release.
Best Answer