There seems to be some sort of timeout in the MATLAB interface that prevents long scripts from running.
The attached script calls myfunc.m, which has a dummy for loop that iterates x number of times. When called with x = 1e11, MATLAB standalone takes almost 300 seconds to execute. But when called from GMAT, it returns in less than 10 seconds.
|Field||Original Value||New Value|
|Priority||P2 [ 3 ]||P1 [ 1 ]|
|Fix Version/s||R2013a [ 10201 ]|
|Assignee||Joel Parker [ jjkparker ]||Linda Jun [ gmatloj ]|
|Summary||MATLAB interface timeout||MATLAB interface max loop count|
|Assignee||Linda Jun [ gmatloj ]||Joel Parker [ jjkparker ]|
|Resolution||Won't Fix [ 2 ]|
|Status||Open [ 1 ]||Resolved [ 5 ]|
|Status||Resolved [ 5 ]||Closed [ 6 ]|