Borrar filtros
Borrar filtros

unable to open and excute matlab functions

3 visualizaciones (últimos 30 días)
Peng
Peng el 2 de Jul. de 2013
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 comentario
Walter Roberson
Walter Roberson el 2 de Jul. de 2013
Have you tried starting up MATLAB running as administrator?

Iniciar sesión para comentar.

Respuesta aceptada

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

Más respuestas (0)

Categorías

Más información sobre Startup and Shutdown 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