referring to a function that does not exist GUI

조회 수: 1 (최근 30일)
isra
isra 2017년 4월 17일
댓글: isra 2017년 4월 20일
Hi I've created a GUI and I used an element that I later deleted (called Tachycardia). I keep getting this error whenever I run my app, the error relates to the creat function of that deleted object. I searched in my code and I can't find any "Tachcardia" statement and I don't understand where is it referring to. Here is the error syntax:
Undefined function or variable 'Tahycardia_CreateFcn'.
Error in gui_mainfcn (line 95)
feval(varargin{:});
Error in Fetal_monitoring_simulator3 (line 42)
gui_mainfcn(gui_State, varargin{:});
Error in
matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)Fetal_monitoring_simulator3('Tahycardia_CreateFcn',hObject,eventdata,guidata(hObject))
Here is line 42 that the code is referring to
if nargout
[varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
else
gui_mainfcn(gui_State, varargin{:}); %%line 42
end

채택된 답변

Image Analyst
Image Analyst 2017년 4월 19일
Click on the 3 shapes icon on the GUIDE toolbox to bring up the Object Browser and look for anything by that name.
This can sometimes show things that are otherwise invisible in GUIDE. If you see something you don't want, click on it and delete it.
You can also click on each control and look at it in the Property Inspector and see if that control's CreateFcn meantions tachycardia. If so, delete it.
  댓글 수: 2
isra
isra 2017년 4월 20일
I've searched for it and it only appears once as a text "Tachycardia" and is this test's tag is "text63" not Tachycardia. I already know about this text and I made sure that it's tag doesn't contain Tachycardia.
isra
isra 2017년 4월 20일
Here is an update, I checked the object browser again and opened one text box called "Tachy", in the inspector window it shows that the callback and the delete functions included the "Tachycardia" term in them. I removed that and corrected the name and now it's working. Thanks very much,

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

추가 답변 (1개)

Swathik Kurella Janardhan
Swathik Kurella Janardhan 2017년 4월 19일
You can try executing the following code to rehash your toolbox cache which could resolve the issue:
>> rehash toolboxcache
  댓글 수: 1
isra
isra 2017년 4월 20일
I tried this and it worked once only, then I keep getting the same error even when I execute that command again

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

카테고리

Help CenterFile Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by