A function I\'m using has display() in it (or other things that display messages on command window), so it outputs a lot of things (x 1200) on command line when
display()
You might try wrapping the call to the function in an evalc:
evalc('out = func(arg1, arg2);');