Path: news.mathworks.com!not-for-mail
From: "Steven Lord" <slord@mathworks.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: How to increase the stack space available for MATLAB
Date: Fri, 18 Apr 2008 15:15:43 -0400
Organization: The MathWorks, Inc.
Lines: 39
Message-ID: <fuas0v$99t$1@fred.mathworks.com>
References: <fu73eq$n6i$1@fred.mathworks.com> <fu7jr3$3e3$1@canopus.cc.umanitoba.ca> <fu903f$3ll$1@fred.mathworks.com> <fuao7t$2e$1@canopus.cc.umanitoba.ca>
Reply-To: "Steven Lord" <slord@mathworks.com>
NNTP-Posting-Host: lords.dhcp.mathworks.com
X-Trace: fred.mathworks.com 1208546143 9533 144.212.105.187 (18 Apr 2008 19:15:43 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 18 Apr 2008 19:15:43 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
Xref: news.mathworks.com comp.soft-sys.matlab:463950




"Walter Roberson" <roberson@ibd.nrc-cnrc.gc.ca> wrote in message 
news:fuao7t$2e$1@canopus.cc.umanitoba.ca...
> In article <fu903f$3ll$1@fred.mathworks.com>,
> Amogh Rajanna <amoevol@yahoo.co.in> wrote:
>>The OS i am using is Windows Vista.
>>2GB RAM.
>
>>How to increase stack space available for MATLAB in Windows
>>Vista??
>
> I don't know about Vista, but I found the following:
>
> http://msdn2.microsoft.com/en-us/library/35yc2tc3(VS.80).aspx
>
> That's the DOS/Windows command EDITBIN with the /STACK option.
>
>
> Don't be surprised if it doesn't help at all. When your program
> bombs out telling you your stack is too deep at -exactly- 500 levels,
> you can be sure that the 500 number is programmed into Matlab, not just
> chance that -exactly- 500 calls fit into the stack. And as best
> I *recall*, Mathworks has said there is no way for the user to increase
> the built-in recursion limit.

We give you the ability to point the recursion gun at your foot if you so 
choose.

http://www.mathworks.com/access/helpdesk/help/techdoc/ref/rootobject_props.html#RecursionLimit

The default RecursionLimit value is 500 for all platforms except I believe 
32-bit Linux, where it's set lower because I think we had problems in the 
past.

-- 
Steve Lord
slord@mathworks.com