Good day.
I have recently aquired the parallel computing toolbox to speed up some of our applications. I have run into the following challenge and hope that someone can give me advice on this.
topNodes = [2 3 4 5 6 7];bottomNodes = [1 2 3 4 5 6];polarity = [1 1 -1 1 1 1];nodes = max([topNodes bottomNodes]);T = zeros(numel(polarity),nodes);for i = 1:numel(polarity); if polarity(i) < 0 T(i,bottomNodes(i)) = -1; T(i,topNodes(i)) = 1; else T(i,bottomNodes(i)) = 1; T(i,topNodes(i)) = -1; endend
Now, if I use a parfor loop, it complains. Some assistance will be much appreciated.
Kind regards,
Barend.
Best Answer