Error starting MATLAB R2015a

조회 수: 1 (최근 30일)
Miguel Cruz
Miguel Cruz 2015년 4월 1일
답변: Muhammad Adil Riaz 2017년 11월 13일
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

채택된 답변

Fredrik Lundin
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:
  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.

추가 답변 (6개)

Jonas Olsen Dall
Jonas Olsen Dall 2016년 4월 11일
Try running it as administrator, it worked for me.
  댓글 수: 1
Wally K.
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
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.

Gabriele
Gabriele 2015년 4월 22일
I have the same problem. Have you fixed it?

tao yang
tao yang 2017년 8월 19일
Exception in thread "QueuedMatlabWorker" java.lang.NoClassDefFoundError:

tao yang
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
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.

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by