|
On 24 Nov, 13:21, "Francesco Milano" <fnc.mil...@gmail.com> wrote:
> Hi guys,
> I'm a student that want learn the Matlab software for future use.
> I have viewed in Command Window, this error:
>
> ??? Error while evaluating uicontrol Callback
>
> ??? Maximum recursion limit of 500 reached. Use set(0,'RecursionLimit',N)
> to change the limit. Be aware that exceeding your available stack space can
> crash MATLAB and/or your computer.
>
> I have no idea how to solve this problem.
> How can i do?
Error message might apepar cryptic, but are actually
rather informative. You need to read the error message,
contemplate what it might mean, and then try and figure
out where in your code the error might be.
Since you mention UI callbacks, I wouldn't be
surprised if you have two functions, say, f and g,
that call each other:
function f
g;
end
function g
f;
end
As you see, these functions keep calling
each other ad infinitum. So there is a maximum
limit to how many times this can happen before
matlab complains.
What you need to do, is to review your code to
look for patterns like above. If you find that
kind of pattern, you have a design issue in your
code. You then need to find out what you attempt
to do, why what you tried is wrong, and what to
do instead.
Rune
|