Info

此问题已关闭。 请重新打开它进行编辑或回答。

How can I customize the instances of matlab launched via matlabpool?

2 次查看(过去 30 天)
For example can I choose the directories to add to the matlab path?
I am trying to use matlabpool on a local configuration.
My standard matlab set up is defined via a startup.m file. This file adds several folders to the matlab path.
Adding folders to each instance of matlab via matlabpool slows down the initialization.
I only need a subset of these folders to be added when I start matlabpool. This woudl speed up the initialization.
Can I set up a different startup file for matlabpool?

回答(1 个)

Edric Ellis
Edric Ellis 2012-9-17
When you run an interactive MATLABPOOL session, we always try to synchronize the path on the workers to make sure all your code is available there. Unfortunately, there's no way to disable this. If you run a non-interactive batch job, then you can control the paths on the workers by specifying a value for the AdditionalPaths.

此问题已关闭。

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by