Unable to run any MATLAB function and MATLAB errors on startup
1 view (last 30 days)
Show older comments
MathWorks Support Team
on 16 Nov 2021
Answered: MathWorks Support Team
on 18 Nov 2021
All MATLAB functions, including restoredefaultpath, return an error of undefined function or variable.
Additionally, I see the following error on startup of MATLAB:
Error using eval
Undefined function 'workspacefunc' for arguments of type 'struct'.
Reinstalling MATLAB does not seem to fix the issue.
Accepted Answer
MathWorks Support Team
on 16 Nov 2021
If you are unable to run the usual troubleshooting steps for a corrupted MATLAB path, the MATLABPATH environment variable may be corrupted.
Please check the value of the MATLABPATH environment variable by entering the following in the MATLAB Command Window:
>> !set
This will list all system environment variables present on your machine. The MATLABPATH environment variable should be unset, or set to
{MATLABROOT}/toolbox/local
You can find the full path to MATLABROOT by entering the following in the MATLAB Command Window:
>> matlabroot
0 Comments
More Answers (0)
See Also
Categories
Find more on Startup and Shutdown in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!