MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   资料存档 (https://www.labfans.com/bbs/forumdisplay.php?f=72)
-   -   如何使外部工具箱可用于MATLAB并行计算工具箱作业? (https://www.labfans.com/bbs/showthread.php?t=24218)

poster 2019-12-10 20:48

如何使外部工具箱可用于MATLAB并行计算工具箱作业?
 
作为[URL="https://stackoverflow.com/questions/4410339/parallelize-input-and-display-in-matlab"]该[/URL]问题和后续[URL="https://stackoverflow.com/questions/4410339/parallelize-input-and-display-in-matlab/4411297#4411297"]答案的继续[/URL] ,有人知道如何使用“并行计算工具箱”(使用createJob和createTask )创建作业来访问外部工具箱吗?创建函数以指定应加载的工具箱时,是否可以指定配置参数?



[B]回答:[/B]

根据[URL="http://www.mathworks.com/help/toolbox/distcomp/bqur7ev-20.html#bqur7ev-27"]文档的此部分,[/URL]执行此操作的一种方法是指定作业对象的[URL="http://www.mathworks.com/help/toolbox/distcomp/pathdependencies.html"]'PathDependencies'属性[/URL]或[URL="http://www.mathworks.com/help/toolbox/distcomp/filedependencies.html"]'FileDependencies'属性[/URL] ,以便它指向您需要作业工人能够使用的功能。 。

你应该能够一路指向[URL="http://docs.psychtoolbox.org/KbCheck"]KbCheck功能[/URL]在[URL="http://psychtoolbox.org/wikka.php?wakka=HomePage"]PsychToolbox[/URL] ,有需要的任何其他功能或目录一起KbCheck到正常工作。它看起来像这样:

obj = createJob('PathDependencies',{'path_to_KbCheck',... 'path_to_other_PTB_functions'});

[url=https://stackoverflow.com/questions/4424268]更多&回答...[/url]


所有时间均为北京时间。现在的时间是 01:05

Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.