Parallel Computing Toolbox Matlab
1 次查看(过去 30 天)
显示 更早的评论
Hi everybody,
i have many matlab files and i wonder if i can use Parallel Computing Toolbox to execute them at the same time ? Is it possible ? How can i do this ?
Many thanks :)
0 个评论
采纳的回答
Walter Roberson
2016-4-1
That is going to depend on what they do. Sometimes it would work. For example, you could construct a cell array of function handles, open a pool, use the facility to add the source files to the pool, then enter an spmd block. The spmd bock content would look like
feval(HandlesCell{labindex})
Provided that your pool size was as large as the number of functions to execute.
You might also want to try parfeval for this use.
2 个评论
Walter Roberson
2016-4-1
It depends on what they do.
parpool(3)
spmd
switch labindex
case 1: a() ;
case 2: b() ;
case 3: c() ;
end
end
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Parallel Computing Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!