フィルターのクリア

Every time I start MATLAB I receive: 'Attempt to execute SCRIPT path as a function'

8 ビュー (過去 30 日間)
Gabriel Quintero
Gabriel Quintero 2020 年 4 月 12 日
コメント済み: Gabriel Quintero 2020 年 4 月 13 日
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

回答 (1 件)

Steven Lord
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.
  1 件のコメント
Gabriel Quintero
Gabriel Quintero 2020 年 4 月 13 日
That worked like a charm. Thank you so much! I apreciate it.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeIntroduction to Installation and Licensing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by