read/save files in parpool batch mode?

2 views (last 30 days)
Jon Norberg
Jon Norberg on 6 Aug 2015
Answered: Varun Bhaskar on 11 Aug 2015
I have a script that will read a csv file with "experiments" to run, selects a "row" if there is no corresponding folder created for this and will at the end of the simulation save results into that folder. Starting instances of matlab and executing this script works as each instance runs "its own" experiment and downloads the file. But when I pass the script to batch (and include necessary files) the folders aren't created. What could be different in batch mode? do I need to tell them what working directory to use? Any help appreciated, new to parpool

Answers (1)

Varun Bhaskar
Varun Bhaskar on 11 Aug 2015
Hello,
If you want to send files or folders to each of the workers, you can use the 'AttachedFiles' property of the job object created using parpool. You can also send data to each worker using the 'JobData' property of the job object.
Refer to the following link for more information about 'AttachedFiles':

Categories

Find more on Parallel Computing Fundamentals in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!