如何使外部工具箱可用于MATLAB并行计算工具箱作业? [英] How can I make an external toolbox available to a MATLAB Parallel Computing Toolbox job?
问题描述
作为此问题和后续
As a continuation of this question and the subsequent answer, does anyone know how to have a job created using the Parallel Computing Toolbox (using createJob
and createTask
) access external toolboxes? Is there a configuration parameter I can specify when creating the function to specify toolboxes that should be loaded?
推荐答案
根据文档的这一部分,执行此操作的一种方法是指定 <作业对象的c3>属性,以便它指向您需要该作业的工作者能够使用的功能.
According to this section of the documentation, one way you can do this is to specify either the 'PathDependencies'
property or the 'FileDependencies'
property of the job object so that it points to the functions you need the job's workers to be able to use.
您应该能够指出KbCheck
函数的方法. http://psychtoolbox.org/wikka.php?wakka=HomePage"rel =" nofollow> PsychToolbox ,以及KbCheck
正常运行所需的任何其他功能或目录.看起来像这样:
You should be able to point the way to the KbCheck
function in PsychToolbox, along with any other functions or directories needed for KbCheck
to work properly. It would look something like this:
obj = createJob('PathDependencies',{'path_to_KbCheck',...
'path_to_other_PTB_functions'});
这篇关于如何使外部工具箱可用于MATLAB并行计算工具箱作业?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!