- A permissions issue with "pathdef.m"
- The presence of Lucid Logic VirtuMVP software
Error starting MATLAB R2015a
5 次查看(过去 30 天)
显示 更早的评论
Hello, when i start the program appears an error window which says: "Error using eval undefined function 'workspacefunc' for input arguments of type 'struct'" and in the command window appears the following things:
Undefined function or variable 'computer'.
Error in matlabrc (line 76)
if strncmp(computer,'PC',2)
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at com.mathworks.mlwidgets.graphics.ModelStateFactory.createNoSelectionModelState(ModelStateFactory.java:251)
at com.mathworks.mlwidgets.graphics.PlotToolSetFactory$3.parseComplete(PlotToolSetFactory.java:123)
at com.mathworks.mlwidgets.graphics.ModelStateFactory$ProductInfoListener$1$1.run(ModelStateFactory.java:1032)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$200(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
com.mathworks.jmi.MatlabException: Undefined function or variable 'computer'.
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 don't know how to fix it and I need to use MATLAB right now, please someone help me. Thank you
0 个评论
采纳的回答
Fredrik Lundin
2015-5-15
编辑:Walter Roberson
2016-4-21
I had the same issue. The supports sent me the answer below. My issue was number 2 and now Matlab works.
The "error using eval" can occur due to 2 reasons:
To troubleshoot this, please check the following:
1. If Lucid Logix VirtuMVP is not installed:
Then this is a path related issue that is oftentimes caused by not having the necessary permissions to the MATLAB folder. Specifically, this issue can be caused by not having the necessary permissions to the "pathdef.m". For Windows, setting the owner of the pathdef.m to Everyone and giving Everyone full control will resolve this issue for all users. Execute "which -all pathdef" in MATLAB to find the file location.
2. If you do have Lucid Logix VirtuMVP installed:
Then the VirtuMVP entry in the PATH environment variable will need to be removed ("C:\Program Files\Lucidlogix Technologies\VIRTU MVP 2.0" or any other form of VirtuMVP). This product (or at least some versions of it) is known to be incompatible with MATLAB. The incompatibility may only impact 64-bit installations, if this issue still exists.
0 个评论
更多回答(6 个)
Jonas Olsen Dall
2016-4-11
Try running it as administrator, it worked for me.
1 个评论
Wally K.
2016-4-21
The problem showed up for me after my license was updated. Ran as admin and it went away.
David Zimmerman
2017-4-26
编辑:David Zimmerman
2017-4-26
I received this same message and was told to type:
restoredefaultpath;matlabrc
and then it worked out. basically matlab shifted to some weird path and couldn't find any of its built in functions and this restores the default path.
0 个评论
tao yang
2017-8-19
编辑:Walter Roberson
2017-8-19
Exception in thread "QueuedMatlabWorker" java.lang.NoClassDefFoundError: Could not initialize class com.mathworks.mlwidgets.help.ProductFilterModel$InstalledState
at com.mathworks.mlwidgets.help.DocCenterProductPrefs.getSelectedProductsFromPref(DocCenterProductPrefs.java:47)
at com.mathworks.mlwidgets.help.DocCenterProductPrefs.getProductFilterModel(DocCenterProductPrefs.java:33)
at com.mathworks.mlwidgets.help.DocCenterDocConfigParams.<init>(DocCenterDocConfigParams.java:37)
at com.mathworks.mlwidgets.help.DocCenterDocConfig.getLocalConfig(DocCenterDocConfig.java:77)
at com.mathworks.mlwidgets.help.DocCenterDocConfig.getInstance(DocCenterDocConfig.java:65)
at com.mathworks.mlwidgets.help.DocCenterReferenceRetrievalStrategy.getInstance(DocCenterReferenceRetrievalStrategy.java:43)
at com.mathworks.mlwidgets.help.DocCenterReferenceRetrievalStrategy.createDataRetriever(DocCenterReferenceRetrievalStrategy.java:79)
at com.mathworks.mlwidgets.help.functioncall.MFunctionCall.getReferenceData(MFunctionCall.java:520)
at com.mathworks.mlwidgets.help.functioncall.MFunctionCall.getSignatureString(MFunctionCall.java:489)
at com.mathworks.mlwidgets.help.functioncall.MFunctionCall.createSignatureString(MFunctionCall.java:233)
at com.mathworks.mde.functionhints.QueuedMatlabWorker$2.run(QueuedMatlabWorker.java:283)
at java.lang.Thread.run(Unknown Source)
Muhammad Adil Riaz
2017-11-13
I have same issue: it's path issue due to user account, permission you can just run as administrator to solve this problem.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Low-Level File I/O 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!