### Re: matlab server and user defined matlab functions ...

Posted:

**Wed Jul 11, 2012 6:47 pm**I see the timeout. I have this GMAT script:

and this MATLAB function:

MATLAB takes 263 seconds to with this input, while GMAT is less than 10 seconds.

- Code: Select all
`Create Variable n ret`

Create MatlabFunction myfunc

Create ReportFile r

BeginMissionSequence

n = 100000000000

[ret] = myfunc(n)

Report r ret

and this MATLAB function:

- Code: Select all
`function out = myfunc(x)`

for i=1:x

continue

end

out = x;

end

MATLAB takes 263 seconds to with this input, while GMAT is less than 10 seconds.