- A permissions issue with "pathdef.m"
- The presence of Lucid Logic VirtuMVP software
Error starting MATLAB R2015a
6 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Miguel Cruz
le 1 Avr 2015
Réponse apportée : Muhammad Adil Riaz
le 13 Nov 2017
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 commentaires
Réponse acceptée
Fredrik Lundin
le 15 Mai 2015
Modifié(e) : Walter Roberson
le 21 Avr 2016
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 commentaires
Plus de réponses (6)
Jonas Olsen Dall
le 11 Avr 2016
Try running it as administrator, it worked for me.
1 commentaire
Wally K.
le 21 Avr 2016
The problem showed up for me after my license was updated. Ran as admin and it went away.
David Zimmerman
le 26 Avr 2017
Modifié(e) : David Zimmerman
le 26 Avr 2017
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 commentaires
tao yang
le 19 Août 2017
Exception in thread "QueuedMatlabWorker" java.lang.NoClassDefFoundError:
0 commentaires
tao yang
le 19 Août 2017
Modifié(e) : Walter Roberson
le 19 Août 2017
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
le 13 Nov 2017
I have same issue: it's path issue due to user account, permission you can just run as administrator to solve this problem.
0 commentaires
Voir également
Catégories
En savoir plus sur Low-Level File I/O dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!