DSPRelated.com
Forums

Recursion limit

Started by Ali October 19, 2010
Dear all

Hope every body is doing well. I tried to run a matlab code in which an audio data is read from a .wav file then process them, after waiting for a mtalab busy, the following red message appears in my command window:

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.

Error in ==> ispc at 34

i knew it is something to do with stack memory limit, so i turned all .mat files into .txt hoping to free some space,also i tried to set lower limit but the problem still exists, any clue to solve this would be appreciated.

Regards
Ali
All that it means is that you are recursively calling a function and it has
exceeded the limit.
Possible reason, the recursive function doesn't hit the condition to exit.
If you think, your code, needs more recursive calls to solve the problem
then increase the limit. Otherwise, debug your code as to why the condition
is not satisfied.
For more details, google the error,
http://www.mathworks.com/matlabcentral/newsreader/view_thread/290985

Good luck,
Tilak

On Tue, Oct 19, 2010 at 9:02 AM, Ali wrote:

>
> Dear all
>
> Hope every body is doing well. I tried to run a matlab code in which an
> audio data is read from a .wav file then process them, after waiting for a
> mtalab busy, the following red message appears in my command window:
>
> 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.
>
> Error in ==> ispc at 34
>
> i knew it is something to do with stack memory limit, so i turned all .mat
> files into .txt hoping to free some space,also i tried to set lower limit
> but the problem still exists, any clue to solve this would be appreciated.
>
> Regards
> Ali
>
>
>
Try to increase your virtual memory .right click computer .propeties . . . Advanced . . . In performance click settings . . . . .again go to advance . . .change virtual memory . . .and change acc.
Hope this helps. . .
Reply if you still got problem . . .