What is the stack size limit for an S-function?

2 views (last 30 days)
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

Answers (0)

Categories

Find more on Simulink in Help Center and File Exchange

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!