Info

This question is closed. Reopen it to edit or answer.

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

1 view (last 30 days)
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?

Answers (1)

Edric Ellis
Edric Ellis on 17 Sep 2012
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!