Every time I start MATLAB I receive: 'Attempt to execute SCRIPT path as a function'
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
So I'm working on a project that involves programming within a folder called myProject and adding the path of another folder called projectFunctions. I did this using the addpath command and saved addpath as a .m file within the myProject folder. Ever since I did this I have been getting errors when I start MATLAB. I tried reinstalling it, but it's not working.
The following is what I get when I start the program:
Warning: Name is nonexistent or not a directory: C:\Users\Gabriel
Quintero\AppData\Local\Temp\Editor_vxdxq
Warning: Initializing Java preferences failed in matlabrc.
This indicates a potentially serious problem in your MATLAB setup, which should
be resolved as soon as possible. Error detected was:
MATLAB:scriptNotAFunction
Attempt to execute SCRIPT path as a function:
C:\Program Files\MATLAB\R2020a\path.m
Attempt to execute SCRIPT path as a function:
C:\Program Files\MATLAB\R2020a\path.m
Error in rmi.isInstalled
Error in rmiml.visibleInToolstrip
Attempt to execute SCRIPT path as a function:
C:\Program Files\MATLAB\R2020a\path.m
Error in rmi.isInstalled
Error in rmiml.visibleInToolstrip
0 comentarios
Respuestas (1)
Steven Lord
el 12 de Abr. de 2020
Rename or remove the file C:\Program Files\MATLAB\R2020a\path.m. It is preventing MATLAB from calling the path function included in MATLAB.
You probably shouldn't be saving your own files inside the MATLAB root directory (returned by the matlabroot function) or inside "c:\Program Files" anyway.
Ver también
Categorías
Más información sobre Introduction to Installation and Licensing en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!