In MATLAB R2015b I am reading, since starting, warnings in command window. even matlab doesn't get closed.

Since I'm opening Matlab R2015b, there come up 100 or 200 warnings written in the command window, like:Warning: Function loglog has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict. and errors like Attempt to execute SCRIPT disp as a function: D:\\toolbox\matlab\lang\disp.m
Error in matlabrc (line 72) disp(exc.message);
Academic License
Attempt to execute SCRIPT which as a function: D:\\toolbox\matlab\general\which.m
If I try to close the program it writes Attempt to execute SCRIPT builtin as a function: D:\\toolbox\matlab\lang\builtin.m and nothing happens, I'm completely unable to operate the matlab program

Answers (2)

Delete previous Matlab files and make sure that the installation goes to /MATLAB/R2015b or similar.
As Matlab support put it: "This error can happen if MATLAB is installed into the root of a drive and outside of a containing folder. You can create a new folder and move the installation into that folder or reinstall into a new folder after removing the old files."
Did you add a directory from a previous version of MATLAB to the path in this version? If so, remove those previous copies of the directory from the MATLAB path. You may need to use RESTOREDEFAULTPATH to do so.

1 Comment

Thank you so much Mr Lord for the kind response. I just followed to same way you showed, but got some other error messages as follows:
>> RESTOREDEFAULTPATH Cannot find an exact (case-sensitive) match for 'RESTOREDEFAULTPATH'
The closest match is: restoredefaultpath in D:\\toolbox\local\restoredefaultpath.m
Did you mean: >> restoredefaultpath Attempt to execute SCRIPT computer as a function: D:\\toolbox\matlab\general\computer.m
Error in restoredefaultpath (line 22) if strncmp(computer,'PC',2)
Attempt to execute SCRIPT false as a function: D:\\toolbox\matlab\elmat\false.m
Error in helpUtils.helpProcess (line 36) function hp = helpProcess(nlhs, nrhs, prhs)
Error in help (line 45) process = helpUtils.helpProcess(nargout, nargin, varargin);
Error in matlab.internal.language.introspective.errorDocCallback (line 2) if ~isempty(help(topic))
Attempt to execute SCRIPT false as a function: D:\\toolbox\matlab\elmat\false.m
Error in helpUtils.helpProcess (line 36) function hp = helpProcess(nlhs, nrhs, prhs)
I'm new to programming so have no clue what to do. Should I reinstall it or there is some other better way? Thanks again!

Sign in to comment.

Categories

Community Treasure Hunt

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

Start Hunting!