I am able to generate C code from my MATLAB file without any problems with MATLAB Coder. When I compile the C code into a MEX file and run it with small inputs, it works fine. However, when I do it with large inputs, I get the following error message:
Severe: 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.??? Unexpected MATLAB exception.
Best Answer