MATLAB Answers

RecursionLimit reached without applying recursion calls.

1 view (last 30 days)
Miroslav Balda
Miroslav Balda on 5 Dec 2014
Answered: Robert Cumming on 5 Dec 2014
I have got the message that the recurence limit is reached, when I wanted to run big program I am just debugging. There was also a recommendation to increase N that was preset to 500. This message repeated immedialelly even after new start of MATLAB.
I do not use recurence wilingly, nevertheless, I may not state that it does not happen by mistake. Interesting is, that MATLAB does not announce place, where it has happened during the program run. Any clear does not help as well as MATLAB restart. Is there a way how to delete a stack content that blocks new run?
Thanls for any help.
Mira

  0 Comments

Sign in to comment.

Answers (1)

Robert Cumming
Robert Cumming on 5 Dec 2014
Type in Matlab
le = lasterror
That will give you information on (unsurprisingly) the last error - this should contain information (in le.stack) about where th recursion is happening.

  0 Comments

Sign in to comment.

Products