I'm trying to execute a simulation in Simulink comprising of - an embedded matlab block, which consists of 3 functions, written in embedded matlab style - 21 inputs to this block, which are taking variables from the workspace (arrays, matrices), around 4 of them having 5000...20000 entries, the rest is 'small' - 6 outputs, writing back some matrices and arrays to workspace variables
When executed in 'normal mode' it reveals exactly the results I expect, with in a couple of 1/100s. But, when executed in external mode (rtwin, on Matlab R2010b) it brings up the following error:
"Error occurred while executing External Mode MEX-file 'rtwinext': Not enough memory on target. Please try to decrease the Duration parameter in External Mode Control Panel."
But even adjusting the duration parameter down to the length of one steplength (0.05s) it still brings up this error. And, important, it brings this error, when I click on 'connect to target', so there is actually no execution possible...