I am using parallel computing (the Parallel Computing Toolbox) to simulate population dynamics of a population over a large area in order to not run out of memory, which occurs when working on a single node. I am trying to have each worker run the dynamics for a specific area over a day and then return the new population. When I try to send data to a parfor-loop, I get the error message that "the PARFOR loop cannot run due to the way the X (population) variable is used." How should I go about sending the initial population data to the workers in the loop and then sending the data out of the loop to the initial node?
MATLAB: Parallel Computing Data Transfer? (Need data edited in parfor-loop and returned)
dataparallel computingParallel Computing Toolbox
Best Answer