Effacer les filtres
Effacer les filtres

unable to open and excute matlab functions

3 vues (au cours des 30 derniers jours)
Peng
Peng le 2 Juil 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 commentaire
Walter Roberson
Walter Roberson le 2 Juil 2013
Have you tried starting up MATLAB running as administrator?

Connectez-vous pour commenter.

Réponse acceptée

Peng
Peng le 2 Juil 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.

Plus de réponses (0)

Catégories

En savoir plus sur Startup and Shutdown 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!

Translated by