How can I make an external toolbox available to a MATLAB Parallel Computing Toolbox job?

前端 未结 2 1408
闹比i
闹比i 2021-01-21 14:29

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 <

2条回答
  •  醉梦人生
    2021-01-21 14:55

    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.

    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'});
    

提交回复
热议问题