undefined function or variable workspacefunc

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'.
>>

 채택된 답변

madhan ravi
madhan ravi 2018년 10월 17일

1 개 추천

댓글 수: 2

Jan
Jan 2018년 10월 17일
So the problem was a function called feature.m, which confused Matlab substantially?
madhan ravi
madhan ravi 2018년 10월 17일
Yes exactly @Jan

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

추가 답변 (1개)

Jan
Jan 2018년 10월 17일
편집: Jan 2018년 10월 17일

1 개 추천

Did you read and consider the error message?
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.
So run the suggested fixing:
restoredefaultpath
matlabrc
Maybe you have to run Matlab with admin privileges to do this successfully.
If this fails, your Matlab installation has been destroyed. Either recover the files from your backup, or re-install Matlab. Find out, what happened before Matlab was damaged and avoid to do the same again.

댓글 수: 9

madhan ravi
madhan ravi 2018년 10월 17일
Thank you Jan, I reinstalled but didn’t work out. Will try the suggested when I get to my mac
I tried as you suggested but it says
Error using eval
undefined function or variable workspacefunc of class 'struct'
Matt J
Matt J 2018년 10월 17일
@madhan ravi
Did you do a clean re-install? In other words, did you delete the original Matlab installation folder before re-installing?
madhan ravi
madhan ravi 2018년 10월 17일
yes @Matt J but then the error persists unfortunately
madhan ravi
madhan ravi 2018년 10월 17일
@Jan
Maybe you have to run Matlab with admin privileges to do this successfully.
not sure how to do this in Mac
Did Matlab run before? If so, what did you change before it started to fail? Do you have a startup.m file, which destroys the path?
which startup -all
Does any of these files contain some brute code, which confuses the path?
>> which startup -all
'startup' not found.
madhan ravi
madhan ravi 2018년 10월 17일
편집: madhan ravi 2018년 10월 17일
error occurred after running this, right now I'm following according to this link to rectify the problem
madhan ravi
madhan ravi 2018년 10월 17일
+1

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

카테고리

도움말 센터File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

제품

릴리스

R2017a

태그

질문:

2018년 10월 17일

댓글:

2018년 10월 17일

Community Treasure Hunt

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

Start Hunting!

Translated by