필터 지우기
필터 지우기

unable to open and excute matlab functions

조회 수: 3 (최근 30일)
Peng
Peng 2013년 7월 2일
I'm using Matlab 2013a on server 2008 r2, but I get this error code on startup: C:\Program Files\MATLAB\R2013a\toolbox\local\pathdef.m: Cannot open file: permission denied. Warning: MATLAB did not appear to successfully set the search path. To recover for this session of MATLAB, type "restoredefaultpath;matlabrc". To find out how to avoid this warning the next time you start MATLAB, type "docsearch problem path" after recovering for this session. Warning: Duplicate directory name: C:\Program Files\MATLAB\R2013a\toolbox\local Warning: Initializing Handle Graphics failed in matlabrc. This indicates a potentially serious problem in your MATLAB setup, which should be resolved as soon as possible. Error detected was: MATLAB:undefinedVarOrClass Undefined variable "graphics" or class "graphics.internal.initializeMATLABRoot". Warning: Initializing Java preferences failed in matlabrc. This indicates a potentially serious problem in your MATLAB setup, which should be resolved as soon as possible. Error detected was: MATLAB:UndefinedFunction Undefined function 'usejava' for input arguments of type 'char'. > In matlabrc at 110 Warning: Failed to add default profiler filters. > In matlabrc at 149 Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at com.mathworks.mlwidgets.graphics.ModelStateFactory.createNoSelectionModelState(ModelStateFactory.java:242) at com.mathworks.mlwidgets.graphics.PlotToolSetFactory$3.parseComplete(PlotToolSetFactory.java:127) at com.mathworks.mlwidgets.graphics.ModelStateFactory$ProductInfoListener$1$1.run(ModelStateFactory.java:1023) at java.awt.event.InvocationEvent.dispatch(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)
Then, I'm unable to open my owm function and it says: Undefined function 'uiopen' for input arguments of type 'char'.
Some users also have this error while the other behave normally. I have tried uninstall and re-install matlab, the problem remains.
  댓글 수: 1
Walter Roberson
Walter Roberson 2013년 7월 2일
Have you tried starting up MATLAB running as administrator?

댓글을 달려면 로그인하십시오.

채택된 답변

Peng
Peng 2013년 7월 2일
Ok, problem sovled. I add modification permission of file pathdef.m to all users. Although it may seem unsafe, but at least it works.

추가 답변 (0개)

카테고리

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