What is the stack size limit for an S-function?
2 views (last 30 days)
Show older comments
I have seen other responses about the following error message received during S-function execution:
"MATLAB has attempted to use more stack space than is available. If a mex file was in use check for large local variables or infinite recursion."
However, I cannot find any reference to answer the question: What is the stack size limit?
I want to re-work my code to fit within the limit, but this is tough if I have to determine it experimentally. Can anyone tell me how to determine this on my machine, or is it a fixed, documented limit?
I am running MATLAB and Simulink R2013a on a Windows 7 machine.
Thanks, John
1 Comment
Sandip Kumar
on 10 Oct 2014
Another MATLAB answers post covers this: http://www.mathworks.com/matlabcentral/answers/97679-why-do-i-get-errors-when-running-generated-c-code-with-large-inputs-in-matlab-coder-2-0-r2011a
But this is applicable to R2011a, for R2013a, the commands have changed, refer to the following documentation for exact function/syntax names:
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!