Newly Installed Matlab can't run any function or script at all
6 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I just installed Matlab R2015a on my Window 7.
However, once I start the Matlab program, it indicates a bunch of errors and cannot run any function or command at all.
The errors I received are as followed:
"Warning: Function loglog has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict."
All the buildin functions are having this problem.
Then,
"Attempt to execute SCRIPT disp as a function:
E:\\toolbox\matlab\lang\disp.m
Error in matlabrc (line 72)
disp(exc.message);
Attempt to execute SCRIPT which as a function:
E:\\toolbox\matlab\general\which.m
com.mathworks.jmi.MatlabException: Attempt to execute SCRIPT narginchk as a function:
E:\\toolbox\matlab\lang\narginchk.m
at com.mathworks.jmi.NativeMatlab.SendMatlabMessage(Native Method)
at com.mathworks.jmi.NativeMatlab.sendMatlabMessage(NativeMatlab.java:266)
at com.mathworks.jmi.MatlabLooper.sendMatlabMessage(MatlabLooper.java:120)
at com.mathworks.jmi.Matlab.mtFeval(Matlab.java:1710)
at com.mathworks.jmi.MatlabWorker.feval(MatlabWorker.java:197)
at com.mathworks.appmanagement.GetAppInstallDirectoryWorker.doOnMatlabThread(GetAppInstallDirectoryWorker.java:20)
at com.mathworks.appmanagement.GetAppInstallDirectoryWorker.doOnMatlabThread(GetAppInstallDirectoryWorker.java:7)
at com.mathworks.appmanagement.AbstractAppManagementMatlabWorker.runOnMatlabThread(AbstractAppManagementMatlabWorker.java:21)
at com.mathworks.jmi.MatlabWorker$2.run(MatlabWorker.java:79)
at com.mathworks.jmi.NativeMatlab.dispatchMTRequests(NativeMatlab.java:475)"
I tried "which function-all", but even the which function cannot run.
In fact, I cannot even close the program. Once I click the close icon, it returns:
"Attempt to execute SCRIPT builtin as a function:
E:\\toolbox\matlab\lang\builtin.m"
I've re-installed Matlab several times, but every time the problem occurs.
So what might be the problem and how can I solve it? Thank you,
2 Kommentare
Jason Melick
am 8 Okt. 2015
Any luck getting this resolved?
I am having the exact same issue with a new install (student license) of R2015b. Any help would be appreciated.
Antworten (3)
Steven Lord
am 20 Jul. 2015
Where did you install MATLAB? Did you map that drive to E:\? If so, are you in the directory E:\toolbox\matlab\lang when you start MATLAB?
Alternately, do you have the toolbox directories from a different installation of MATLAB on this MATLAB installation's path? That's not going to work and could cause this type of errors.
Try restoring the default search path. If you start MATLAB in the toolbox/local subdirectory under your MATLAB root directory, you should be able to invoke RESTOREDEFAULTPATH as the first command in your MATLAB session. Try that and see if MATLAB starts working; if it does, save the path using the path tool GUI.
0 Kommentare
Sudhanshu Bhatt
am 21 Jul. 2015
Hi Tianxiao Ye,
Assuming that MATLAB 2015a is not installed in E:\\toolbox\ directory, the issue could be that the directory and functions mentioned in the error messages were added to your path accidentally or by another user.
Below mentioned are a few suggestions that might help you:
Remove the path mentioned in the error messages:
>> rmpath('E:\\toolbox\')
After removing the path, if the functions work then save the path using the command below:
>> savepath
If function " rmpath " does not work, then you may have to manually delete all the folders.
Once you have removed the path, restart MATLAB 2015a and execute the following command:
>> restoredefaultpath
To check the installation directory for MATLAB, execute the following command:
>> matlabroot
To check all the paths saved in your deafult PATH location, execute the following command:
>> path
If this does not help in solving the issue, please contact Technical Support by creating a new case: Create a new case
Hope this helps.
Thanks
Sudhanshu Bhatt
0 Kommentare
Siehe auch
Kategorien
Mehr zu Introduction to Installation and Licensing finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!