Restore to default path issue
Mostrar comentarios más antiguos
Hello, I am trying to restore path to default but I get an error message.
When I click Set Path I get the following error message:
Attempt to execute SCRIPT mfilename as a function:
C:\Users\s\Desktop\matlab\mcr\toolbox\matlab\lang\mfilename.m
Error in pathtool (line 11)
error(javachk('swing', mfilename));
I tried the restoredefaultpath command but then I got this error message:
Error: File: restoredefaultpath.m Line: 1 Column: 25
The input character is not valid in MATLAB statements or expressions.
Can you help me?
Respuestas (1)
Walter Roberson
el 3 de Sept. de 2021
0 votos
See https://www.mathworks.com/matlabcentral/answers/309984-what-is-the-default-location-of-the-matlab-preferences-directory for information about where to look for your preferences directory. Quit MATLAB (if you are in it), and rename or delete that directory, and then go back into MATLAB.
You should not be putting mcr directories onto your MATLAB path. MCR is only for stand-alone execution of compiled executables.
1 comentario
ANDREAS KOUNTOURIS
el 3 de Sept. de 2021
Categorías
Más información sobre Startup and Shutdown en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!