GUI error: Undefined function 'A_GUI' for input arguments of type 'char'.

Ok, I know this might not have been the best thing to do, but I created a GUI (say A_GUI) and accompanying m functions to do some analysis. I now copied everything into a new folder with the aim of altering the code and GUI for doing another type of analysis. So I changed the name A_GUI with, say, B_GUI everywhere in the GUI objects (Callback and CreateFcn handles) and the code itself. I still get this error for all the objects. How to solve this? Is it better to start from scratch again?
Undefined function 'A_GUI' for input arguments of type 'char'.
Error in
@(hObject,eventdata)A_GUI('text_number_CreateFcn',hObject,eventdata,guidata(hObject))
Error using struct2handle
Error while evaluating uicontrol CreateFcn

 채택된 답변

Walter Roberson
Walter Roberson 2015년 5월 10일

0 개 추천

It is possible to repair it, with some work, but the easier approach is to go back to your A_GUI and tell GUIDE to save it under a new name.

댓글 수: 2

Ha, it works without the errors! All this time I was busting my head and it was that easy! Thanks. Before I go on and change the code (including handle names), will the B_GUI understand that I am calling the new handles/other functions and not the ones of A_GUI? I apologize for my ignorance.
To answer my own question, yes it will.

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Graphics Performance에 대해 자세히 알아보기

질문:

Xen
2015년 5월 9일

댓글:

Xen
2015년 5월 10일

Community Treasure Hunt

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

Start Hunting!

Translated by