Undefined function handle error

In debugging a rather large application with GUI (written using Guide) all the sudden I'm getting:
Undefined function handle.
Error while evaluating uicontrol Callback
I'm not getting any indication of line number, just the error. There is somehting like 5000 lines of code so not easy to find where the issue is. In addition, turning on dbstop on error or dbstop on catch is having no effect. I also tried putting a breakpiont in the callback function for the radiogroup which generates the error when i click on it. No effect. Apparently the error happens before it gets the the GUI callback...? I am stumped as to how to proceed!

댓글 수: 3

Guillaume
Guillaume 2016년 2월 9일
편집: Guillaume 2016년 2월 9일
I would guess the problem is with the way you've defined the callback, so have a look at the code that creates the uibuttongroup.
It sounds like the function handle that you've defined as the callback does not exist.
Walter Roberson
Walter Roberson 2016년 2월 9일
get() the Callback property of the radiogroup and check it, as it might have gotten stepped on.
Is it possible that you have a "clear all" or that you clear the specific function after you set it as the callback, or that you hae changed the content of the function (such as by rewriting the .m file) ?
Todd Welti
Todd Welti 2016년 2월 9일
Turns out the radiobuttons somehow got disassociated with the uibutton group they were in. i had to delete and make new ones.

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

답변 (0개)

카테고리

도움말 센터File Exchange에서 Interactive Control and Callbacks에 대해 자세히 알아보기

질문:

2016년 2월 9일

댓글:

2016년 2월 9일

Community Treasure Hunt

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

Start Hunting!

Translated by