On Startup and when I click on functions: Error using eval undefined function 'workspacefunc' for input arguments of type 'struct'

35 views (last 30 days)
S.
S. on 4 May 2017
Answered: Wilson A N on 9 May 2017
I have just installed today the Matlab R2017a version. When I open Matlab I get this pop-up: 'Error using eval undefined function 'workspacefunc' for input arguments of type 'struct''. Also when I click at other the functions this pop-up appears. So I 'cannot' use Matlab.
Beside, I get in the Command Window a lot of warnings.
if true
% code
endWarning: C:\Program Files\MATLAB\R2017a\toolbox\local\pathdef.m not found.
Toolbox Path Cache is not being used. Type 'help toolbox_path_cache' for more
info
Undefined function or variable 'ispc'.
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: 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 (line 141)
Warning: Initializing MATLAB Graphics failed.
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 or variable 'ismac'.
> In hgrc (line 163)
In matlabrc (line 147)
Warning: Failed to add default profiler filters.
> In matlabrc (line 156)
Undefined function or variable 'rmiml.getAll'.
Undefined function or variable 'rmiml.visibleInToolstrip'.
Undefined function or variable
'internal.matlab.desktop.editor.getSystemObjectInfo'.
Undefined function or variable 'rmiml.visibleInToolstrip'.
I typed down : restoredefaultpath;matlabrc and this helps. But I have to do it every time I startup Matlab. Moreover the warnings in the Command Window doesn't go away, so I don't know what influence that could have on my typed code.
Thanks in advance.

Answers (1)

Wilson A N
Wilson A N on 9 May 2017
This error may be because of permission issues with the pathdef.m file. You may be able to resolve the issue by trying out the steps in the following link:

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by