Borrar filtros
Borrar filtros

Error starting MATLAB R2015a

3 visualizaciones (últimos 30 días)
Miguel Cruz
Miguel Cruz el 1 de Abr. de 2015
Respondida: Muhammad Adil Riaz el 13 de Nov. de 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

Respuesta aceptada

Fredrik Lundin
Fredrik Lundin el 15 de Mayo de 2015
Editada: Walter Roberson el 21 de Abr. de 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:
  1. A permissions issue with "pathdef.m"
  2. The presence of Lucid Logic VirtuMVP software
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.

Más respuestas (6)

Jonas Olsen Dall
Jonas Olsen Dall el 11 de Abr. de 2016
Try running it as administrator, it worked for me.
  1 comentario
Wally K.
Wally K. el 21 de Abr. de 2016
The problem showed up for me after my license was updated. Ran as admin and it went away.

Iniciar sesión para comentar.


David Zimmerman
David Zimmerman el 26 de Abr. de 2017
Editada: David Zimmerman el 26 de Abr. de 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.

Gabriele
Gabriele el 22 de Abr. de 2015
I have the same problem. Have you fixed it?

tao yang
tao yang el 19 de Ag. de 2017
Exception in thread "QueuedMatlabWorker" java.lang.NoClassDefFoundError:

tao yang
tao yang el 19 de Ag. de 2017
Editada: Walter Roberson el 19 de Ag. de 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
Muhammad Adil Riaz el 13 de Nov. de 2017
I have same issue: it's path issue due to user account, permission you can just run as administrator to solve this problem.

Categorías

Más información sobre Low-Level File I/O en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by