Why do I receive errors related to "getFileIn​foForTools​trip" or "getSuppor​tPackageUp​dates" when opening MATLAB?

17 views (last 30 days)
After opening MATLAB, I get the following warnings and errors in MATLAB:
Warning: Name is nonexistent or not a directory:C:\Program Files\MATLAB\R2019b\toolbox\matlab\testframework\ui\matlabWarning: Name is nonexistent or not a directory:C:\Program Files\MATLAB\R2019b\toolbox\coder\simulinkcoder_app\backendWarning: Adding folders named 'resources' to the path is not supported:C:\Program Files\MATLAB\R2019b\toolbox\simulink\simulink\resources....Unrecognized function or variable'matlab.unittest.internal.ui.toolstrip.getFileInfoForToolstrip'.Unrecognized function or variable'matlab.internal.addons.updates.getSupportPackageUpdates'.
As a result of this, I am unable to use MATLAB. Many commands are simply not working. How can I resolve this so that I can use MATLAB?

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 24 May 2022
Edited: MathWorks Support Team on 24 May 2022
The following workarounds should help resolve the issue:
1) Try recreating the path definition file for your installation. Open MATLAB and then enter the following three commands, one after the other, into the command window:
>> rehash toolboxcache>> restoredefaultpath>> savepath
Then, restart MATLAB.
2) Re-activate MATLAB by executing 'activate_matlab.exe' (on Windows) or 'activate_matlab.sh' (on Linux). More information about the location of these files and activating MATLAB is available at:
3) There could be an issue with your pathdef.m file. Follow the troubleshooting steps outlined in the following MATLAB Answers post:

More Answers (0)

Tags

Products


Release

R2020a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by