Labfans是一个针对大学生、工程师和科研工作者的技术社区。 | 论坛首页 | 联系我们(Contact Us) |
![]() |
|
![]() |
#1 |
高级会员
注册日期: 2019-11-21
帖子: 3,006
声望力: 66 ![]() |
![]()
与关于R的问题类似,有没有办法确定给定的MATLAB实例是由用户启动的还是由并行工具箱调度程序生成的?
回答: 警告:未经测试的代码 这似乎可以解决问题: if isempty(getCurrentWorker) % Do things if launched as a worker else % Do things if launched in a GUI session end 这是参考: http : //www.mathworks.com/help/toolbox/distcomp/getcurrentworker.html 更多&回答... |
![]() |
![]() |