Suppressing a function's command window output

前端 未结 2 846
闹比i
闹比i 2020-11-27 07:12

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

2条回答
  •  [愿得一人]
    2020-11-27 08:00

    You might try wrapping the call to the function in an evalc:

    evalc('out = func(arg1, arg2);');
    

提交回复
热议问题