Info

この質問は閉じられています。 編集または回答するには再度開いてください。

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

1 回表示 (過去 30 日間)
furanco Pestilli
furanco Pestilli 2012 年 9 月 15 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
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