<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/167749</link>
    <title>MATLAB Central Newsreader - How to increase the stack space available for MATLAB</title>
    <description>Feed for thread: How to increase the stack space available for MATLAB</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Thu, 17 Apr 2008 08:58:02 -0400</pubDate>
      <title>How to increase the stack space available for MATLAB</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/167749#427211</link>
      <author>Amogh Rajanna</author>
      <description>Hello Everyone,&lt;br&gt;
&lt;br&gt;
How to increase the stack space available for MATLAB.&lt;br&gt;
The programs that i am running have lots of recursive &lt;br&gt;
function calls. Currently the maximum recursion limit is &lt;br&gt;
set to 500.&lt;br&gt;
I want to increase the maximum recursion limit but before &lt;br&gt;
that i must increase the stack space available for MATLAB.&lt;br&gt;
Does anybody have an idea how to do it?&lt;br&gt;
Please reply if anybody has a solution.&lt;br&gt;
&lt;br&gt;
Thanks&lt;br&gt;
Amogh Rajanna </description>
    </item>
    <item>
      <pubDate>Thu, 17 Apr 2008 13:37:39 -0400</pubDate>
      <title>Re: How to increase the stack space available for MATLAB</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/167749#427270</link>
      <author>roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)</author>
      <description>In article &amp;lt;fu73eq$n6i$1@fred.mathworks.com&amp;gt;,&lt;br&gt;
Amogh Rajanna &amp;lt;amoevol@yahoo.co.in&amp;gt; wrote:&lt;br&gt;
&amp;gt;I want to increase the maximum recursion limit but before &lt;br&gt;
&amp;gt;that i must increase the stack space available for MATLAB.&lt;br&gt;
&amp;gt;Does anybody have an idea how to do it?&lt;br&gt;
&lt;br&gt;
The method of increasing the stack space depends upon your&lt;br&gt;
operating system, which you did not mention.&lt;br&gt;
&lt;br&gt;
&amp;gt;Currently the maximum recursion limit is set to 500.&lt;br&gt;
&lt;br&gt;
The recursion limit is built in to Matlab, independant of the&lt;br&gt;
stack space. You are probably not running out of stack memory:&lt;br&gt;
you are probably running into a built-in Matlab counter.&lt;br&gt;
-- &lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&quot;Any sufficiently advanced bug is indistinguishable from a feature.&quot;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;-- Rich Kulawiec</description>
    </item>
    <item>
      <pubDate>Fri, 18 Apr 2008 02:13:03 -0400</pubDate>
      <title>Re: How to increase the stack space available for MATLAB</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/167749#427433</link>
      <author>Amogh Rajanna</author>
      <description>The OS i am using is Windows Vista.&lt;br&gt;
2GB RAM.&lt;br&gt;
&lt;br&gt;
How to increase stack space available for MATLAB in Windows &lt;br&gt;
Vista??&lt;br&gt;
&lt;br&gt;
Thanks&lt;br&gt;
Amogh&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson) wrote in &lt;br&gt;
message &amp;lt;fu7jr3$3e3$1@canopus.cc.umanitoba.ca&amp;gt;...&lt;br&gt;
&amp;gt; In article &amp;lt;fu73eq$n6i$1@fred.mathworks.com&amp;gt;,&lt;br&gt;
&amp;gt; Amogh Rajanna &amp;lt;amoevol@yahoo.co.in&amp;gt; wrote:&lt;br&gt;
&amp;gt; &amp;gt;I want to increase the maximum recursion limit but &lt;br&gt;
before &lt;br&gt;
&amp;gt; &amp;gt;that i must increase the stack space available for &lt;br&gt;
MATLAB.&lt;br&gt;
&amp;gt; &amp;gt;Does anybody have an idea how to do it?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; The method of increasing the stack space depends upon your&lt;br&gt;
&amp;gt; operating system, which you did not mention.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &amp;gt;Currently the maximum recursion limit is set to 500.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; The recursion limit is built in to Matlab, independant of &lt;br&gt;
the&lt;br&gt;
&amp;gt; stack space. You are probably not running out of stack &lt;br&gt;
memory:&lt;br&gt;
&amp;gt; you are probably running into a built-in Matlab counter.&lt;br&gt;
&amp;gt; -- &lt;br&gt;
&amp;gt;    &quot;Any sufficiently advanced bug is indistinguishable &lt;br&gt;
from a feature.&quot;&lt;br&gt;
&amp;gt;    -- Rich Kulawiec</description>
    </item>
    <item>
      <pubDate>Fri, 18 Apr 2008 18:11:09 -0400</pubDate>
      <title>Re: How to increase the stack space available for MATLAB</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/167749#427598</link>
      <author>roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)</author>
      <description>In article &amp;lt;fu903f$3ll$1@fred.mathworks.com&amp;gt;,&lt;br&gt;
Amogh Rajanna &amp;lt;amoevol@yahoo.co.in&amp;gt; wrote:&lt;br&gt;
&amp;gt;The OS i am using is Windows Vista.&lt;br&gt;
&amp;gt;2GB RAM.&lt;br&gt;
&lt;br&gt;
&amp;gt;How to increase stack space available for MATLAB in Windows &lt;br&gt;
&amp;gt;Vista??&lt;br&gt;
&lt;br&gt;
I don't know about Vista, but I found the following:&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://msdn2.microsoft.com/en-us/library/35yc2tc3(VS.80).aspx&quot;&gt;http://msdn2.microsoft.com/en-us/library/35yc2tc3(VS.80).aspx&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
That's the DOS/Windows command EDITBIN with the /STACK option.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Don't be surprised if it doesn't help at all. When your program&lt;br&gt;
bombs out telling you your stack is too deep at -exactly- 500 levels,&lt;br&gt;
you can be sure that the 500 number is programmed into Matlab, not just&lt;br&gt;
chance that -exactly- 500 calls fit into the stack. And as best&lt;br&gt;
I *recall*, Mathworks has said there is no way for the user to increase&lt;br&gt;
the built-in recursion limit.&lt;br&gt;
-- &lt;br&gt;
Q: Why did the chicken cross the Mobius strip?&lt;br&gt;
&lt;br&gt;
A: There were manifold reasons.</description>
    </item>
    <item>
      <pubDate>Fri, 18 Apr 2008 19:15:43 -0400</pubDate>
      <title>Re: How to increase the stack space available for MATLAB</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/167749#427608</link>
      <author>Steven Lord</author>
      <description>&lt;br&gt;
&quot;Walter Roberson&quot; &amp;lt;roberson@ibd.nrc-cnrc.gc.ca&amp;gt; wrote in message &lt;br&gt;
news:fuao7t$2e$1@canopus.cc.umanitoba.ca...&lt;br&gt;
&amp;gt; In article &amp;lt;fu903f$3ll$1@fred.mathworks.com&amp;gt;,&lt;br&gt;
&amp;gt; Amogh Rajanna &amp;lt;amoevol@yahoo.co.in&amp;gt; wrote:&lt;br&gt;
&amp;gt;&amp;gt;The OS i am using is Windows Vista.&lt;br&gt;
&amp;gt;&amp;gt;2GB RAM.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt;How to increase stack space available for MATLAB in Windows&lt;br&gt;
&amp;gt;&amp;gt;Vista??&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; I don't know about Vista, but I found the following:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &lt;a href=&quot;http://msdn2.microsoft.com/en-us/library/35yc2tc3(VS.80).aspx&quot;&gt;http://msdn2.microsoft.com/en-us/library/35yc2tc3(VS.80).aspx&lt;/a&gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; That's the DOS/Windows command EDITBIN with the /STACK option.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Don't be surprised if it doesn't help at all. When your program&lt;br&gt;
&amp;gt; bombs out telling you your stack is too deep at -exactly- 500 levels,&lt;br&gt;
&amp;gt; you can be sure that the 500 number is programmed into Matlab, not just&lt;br&gt;
&amp;gt; chance that -exactly- 500 calls fit into the stack. And as best&lt;br&gt;
&amp;gt; I *recall*, Mathworks has said there is no way for the user to increase&lt;br&gt;
&amp;gt; the built-in recursion limit.&lt;br&gt;
&lt;br&gt;
We give you the ability to point the recursion gun at your foot if you so &lt;br&gt;
choose.&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://www.mathworks.com/access/helpdesk/help/techdoc/ref/rootobject_props.html#RecursionLimit&quot;&gt;http://www.mathworks.com/access/helpdesk/help/techdoc/ref/rootobject_props.html#RecursionLimit&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
The default RecursionLimit value is 500 for all platforms except I believe &lt;br&gt;
32-bit Linux, where it's set lower because I think we had problems in the &lt;br&gt;
past.&lt;br&gt;
&lt;br&gt;
-- &lt;br&gt;
Steve Lord&lt;br&gt;
slord@mathworks.com </description>
    </item>
  </channel>
</rss>

