Jump to content

Find limit of recursion: Difference between revisions

Added a solution for MATLAB
m (Use 'println' instead of 'msg')
(Added a solution for MATLAB)
Line 222:
print error ; 16 Stopping... recurse [make "depth :depth + 1]
(print [Depth reached:] :depth) ; some arbitrarily large number</lang>
 
=={{header|MATLAB}}==
The recursion limit can be 'get' and 'set' using the "get" and "set" keywords.
 
Sample Usage:
<lang MATLAB>>> get(0,'RecursionLimit')
 
ans =
 
500
 
>> set(0,'RecursionLimit',2500)
>> get(0,'RecursionLimit')
 
ans =
 
2500</lang>
 
 
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.