MATLAB Answers

Why do I get the error message 'Error when evaluating uicontrol Callback?

8 views (last 30 days)
Why do I get the following error message:
Error when evaluating uicontrol Callback.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 27 Feb 2012
A callback function for a uicontrol in your figure or GUI has thrown an error.
Common causes:
There are many possible causes for this error. The line above simply identifies that the error is located in a uicontrol's callback function.
The section of the error message that follows the line above will explain the cause of the error. Debug the callback function based on the second portion of the error message returned from MATLAB.


Sign in to comment.

More Answers (0)


No tags entered yet.


Community Treasure Hunt

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

Start Hunting!