MATLAB: Undefined function or variable workspacefunc

corruptmac osMATLAB

complete error message:
Too many input arguments.
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)
Warning: Initializing 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:TooManyInputs
Too many input arguments.
> In matlabrc (line 185)
Error using feature
Too many input arguments.
Error in matlabrc (line 238)
if strcmpi(system_dependent('getpref','GeneralEchoOn'),'BTrue')
Undefined function or variable
'matlab.internal.environment.context.isMATLABOnline'.
>>