Every time I start MATLAB I receive: 'Attempt to execute SCRIPT path as a function'
조회 수: 14 (최근 30일)
이전 댓글 표시
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
답변 (1개)
Steven Lord
2020년 4월 12일
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.
참고 항목
카테고리
Help Center 및 File Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!