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
Recursion limit
Started by ●October 19, 2010
Reply by ●October 21, 20102010-10-21
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
>
>
>
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
>
>
>
Reply by ●October 24, 20102010-10-24