error on start up

7 views (last 30 days)
Erasmus Ekong
Erasmus Ekong on 17 Oct 2021
Commented: Erasmus Ekong on 18 Oct 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 Comments
Walter Roberson
Walter Roberson on 17 Oct 2021
What error messages are shown?
Erasmus Ekong
Erasmus Ekong on 18 Oct 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)

Sign in to comment.

Accepted Answer

Walter Roberson
Walter Roberson on 18 Oct 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 Comment
Erasmus Ekong
Erasmus Ekong on 18 Oct 2021
Thank you so much sir, i really appreciate. Thank you so much

Sign in to comment.

More Answers (0)

Categories

Find more on Startup and Shutdown in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!