禁止功能的命令窗口输出 [英] Suppressing a function's command window output

查看:100
本文介绍了禁止功能的命令窗口输出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的函数中有 display()(或其他在命令窗口中显示消息的东西),所以它输出很多东西(x 1200 )当我运行我的代码时,它使得事情很难跟踪和观察。

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 I run my code, which makes things hard to track and observe.

有没有办法来抑制这个特定函数的输出?用分号结束语句显然没有帮助。

Is there a way to suppress the output of this specific function? Ending the statement with semicolon obviously doesn't help.

推荐答案

您可以尝试在 evalc

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

这篇关于禁止功能的命令窗口输出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆