Hello Ian Tejada,
I understand that you are facing issues opening a MATLAB R2021a/ R2022a project in Surface Pro 7 machine, but able to do the same successfully in a MacOS system.
Here are some steps you could perform to troubleshoot the issue:
- Restore default MATLAB search path and rehash the toolbox cache
- Before modifying the search path, please ensure to separately store a backup for the ‘pathdef.m’ file. You can locate ‘pathdef.m’ by executing the following command in the MATLAB command window:
>> which -all pathdef
- After taking the backup, execute the following commands in the MATLAB command window to restore default MATLAB search path and rehash the toolbox cache.
>> restoredefaultpath
>> rehash toolboxcache
2.For Simulink, including the following command may be helpful:
>> restoredefaultpath
>> rehash toolboxcache
>> sl_refresh_customizations
3.If the error is resolved, save the new MATLAB search path by executing the following command in the MATLAB command window:
>> savepath
Please note that the above instructions are only the initial troubleshooting steps to uncover corrupt installation, shadowing issues and path issues. They may or may not work on your specific machine. If the above solution doesn’t help, further investigation of the system’s configuration is required to resolve the issue.
Note: Performing the above-mentioned operations will remove any custom paths that may have been created. The following MATLAB Answers post provides additional information on how to back them up: https://in.mathworks.com/matlabcentral/answers/166871-how-will-running-the-restoredefaultpath-and-savepath-commands-affect-my-custom-paths-and-how-do
Hope this information helps!