From: Chris on
hi,

I have a problem with parallel computing.

My program calculates a number of datasets in parallel, but in the end I would like to add the results to a grand average.
This grand average consists of a cell matrix containing normal matrices.
So all I have to do is for each lab, produce the same cell matrix and add.
But then I get the following basic matlab error;

Error in ==> parallel_function>make_general_channel/channel_general at 888
Undefined function or method 'plus' for input arguments of type 'cell'.

So then I have to use indices to add the matrices seperately in each cell.

This does not work either since then I get the following parse error;

"For MATLAB to execute parfor loops efficiently, the amount of data sent to the MATLAB workers must be minimal. One of the ways MATLAB achieves this is by restricting the way variables can be indexed in parfor iterations. The indicated variable is indexed in a way that is incompatible with parfor.
Suggested Action
Fix the indexing. For a description of the indexing restrictions, see “Sliced Variables” in the Parallel Computing Toolbox documentation."

This is because with parallel processing the grand average variable is treated as a sliced variable once you start indexing it.

How can I overcome this, i'm new to parallel computing, so maybe i'm just missing something here.

gratefull for any suggestions.
 | 
Pages: 1
Prev: redundancies
Next: pass data between two gui