error on start up

2 Ansichten (letzte 30 Tage)
Erasmus Ekong
Erasmus Ekong am 17 Okt. 2021
Kommentiert: Erasmus Ekong am 18 Okt. 2021
Hello everyone, i am having a little challenge with my matlab. When i open it, it gives me series of errors.
please how can i stop this?
Thanks
  2 Kommentare
Walter Roberson
Walter Roberson am 17 Okt. 2021
What error messages are shown?
Erasmus Ekong
Erasmus Ekong am 18 Okt. 2021
Warning: Function find has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.
Warning: Function gt has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.
Warning: Function what has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.
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:\Users\Erasmus\Documents\MATLAB\path.m
> In matlabrc (line 118)
Attempt to execute SCRIPT path as a function:
C:\Users\Erasmus\Documents\MATLAB\path.m
Error in setupConnector>config_mpath (line 130)
Error in setupConnector (line 26)
Error in performConnectorAction>startService (line 105)
Error in performConnectorAction (line 13)
Error in connectorHandler>performAction (line 69)
Error in connectorHandler (line 28)
Error in connector (line 10)
connectorHandler(action, varargin{:});
Error in connector.internal.autostart.run (line 10)

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 18 Okt. 2021
Quit MATLAB.
Then rename C:\Users\Erasmus\Documents\MATLAB to C:\Users\Erasmus\Documents\old-MATLAB
Now start MATLAB again; it will create a new empty C:\Users\Erasmus\Documents\MATLAB I believe (if not, create it yourself)
You can then look in old-MATLAB to find functions that are not the same as any Mathworks provided function and copy them in to C:\Users\Erasmus\Documents\MATLAB . But you should not copy in find.m or path.m or gt.m or what.m -- at least not without renaming them so they do not conflict with any Mathworks provided function.
  1 Kommentar
Erasmus Ekong
Erasmus Ekong am 18 Okt. 2021
Thank you so much sir, i really appreciate. Thank you so much

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Startup and Shutdown finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by