禁用Matlab焦点窃取,而无需修改Matlab脚本 [英] Disable Matlab focus stealing, without modifying Matlab script

查看:97
本文介绍了禁用Matlab焦点窃取,而无需修改Matlab脚本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有在后台运行的Matlab脚本.随着计算的进行,它不断弹出弹出栏窗口.这很烦人.

I hava Matlab script running in the background. It keeps popping up pogress bar windows as the computation progresses. This is very annoying.

问题是我自己没有编写Matlab脚本,这是很长很复杂的代码,我不想弄乱.那么如何在不修改Matlab脚本的情况下防止Matlab失去焦点呢?希望某些Matlab设置可以让我做到这一点,而无需修改脚本本身.

Problem is I did not write the Matlab script myself, and it is a very long and complicated piece of code that I don't want to mess with. So how can I prevent Matlab from stealing focus, without modifying the Matlab script? Hopefully some Matlab setting will let me do this, without modifying the script itself.

如果有问题,我的电脑正在运行Xubuntu.

In case it matters, my PC is running Xubuntu.

推荐答案

避免数字出现的一些想法:

Some ideas to avoid figures:

打开一个工作程序(需要并行计算)并在其上运行脚本.工人会自动没有GUI

Open a single worker (requires parallel computing) and run your script on it. Workers automatically don't have a GUI

matlabpool 1
warning('off','MATLAB:Completion:AllInputsExcluded') %turn off warning
spmd, yourfunction, end

使用matlab启动参数禁用图形

Use the matlab startup parameters to disable figures

matlab -noFigureWindows

或将matlab作为命令行工具启动,运行函数,保存工作区并退出.

or start matlab as a command line tool, running your function, saving the workspace and exiting.

matlab -nodisplay -nosplash -r "yourfunction;save('result.mat');exit"

这篇关于禁用Matlab焦点窃取,而无需修改Matlab脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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